mirror of https://github.com/python/cpython
Set kAECanInteract and kAECanSwitchLayer flags for the finder interactions.
This commit is contained in:
parent
f35b884c91
commit
0e0d3e7c2b
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue