]> granicus.if.org Git - python/commitdiff
Set kAECanInteract and kAECanSwitchLayer flags for the finder interactions.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 15 Oct 1998 14:02:54 +0000 (14:02 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 15 Oct 1998 14:02:54 +0000 (14:02 +0000)
Mac/Lib/findertools.py

index ffc75f51e2f3389f2c847be429e08ed70a1c3e06..4de4f0c1d77c743cb6660b1b1b5e3479ba33ebfb 100644 (file)
@@ -1,6 +1,7 @@
 """Utility routines depending on the finder."""
 
 import Finder_7_0_Suite
+import AppleEvents
 import aetools
 import MacOS
 import sys
@@ -17,6 +18,8 @@ def _getfinder():
        global _finder_talker
        if not _finder_talker:
                _finder_talker = Finder(SIGNATURE)
+       _finder_talker.send_flags = ( _finder_talker.send_flags | 
+               AppleEvents.kAECanInteract | AppleEvents.kAECanSwitchLayer)
        return _finder_talker
        
 def launch(file):