mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Backport of revision 62648
This commit is contained in:
parent
f3bb28395f
commit
7fd29f01ea
3 changed files with 43 additions and 101 deletions
|
@ -27,7 +27,7 @@ SEND_MODE = kAENoReply # kAEWaitReply hangs when run from Terminal.app itself
|
|||
|
||||
def run(command):
|
||||
"""Run a shell command in a new Terminal.app window."""
|
||||
termAddress = AE.AECreateDesc(typeApplSignature, TERMINAL_SIG)
|
||||
termAddress = AE.AECreateDesc(typeApplicationBundleID, "com.apple.Terminal")
|
||||
theEvent = AE.AECreateAppleEvent(kAECoreSuite, kAEDoScript, termAddress,
|
||||
kAutoGenerateReturnID, kAnyTransactionID)
|
||||
commandDesc = AE.AECreateDesc(typeChar, command)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue