tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
^\¬Qc@sdZddlmZedddƒddlZddlZddlmZddlTd    Zd
Z    e
Z d „Z e d krŒe d ƒndS(sterminalcommand.py -- A minimal interface to Terminal.app.
 
To run a shell command in a new Terminal.app window:
 
    import terminalcommand
    terminalcommand.run("ls -l")
 
No result is returned; it is purely meant as a quick way to run a script
with a decent input/output window.
iÿÿÿÿ(twarnpy3ks.In 3.x, the terminalcommand module is removed.t
stackleveliN(tAE(t*ttrmxs2/usr/bin/open /Applications/Utilities/Terminal.appcCsÆtjtdƒ}tjtt|ttƒ}tjt|ƒ}|j    t
|ƒy|j t t tƒWnYtjk
rÁ}|ddkr‘‚ntjtƒtjdƒ|j t t tƒnXdS(s1Run a shell command in a new Terminal.app window.scom.apple.Terminalii¨ýÿÿiN(Rt AECreateDescttypeApplicationBundleIDtAECreateAppleEventt kAECoreSuitet kAEDoScripttkAutoGenerateReturnIDtkAnyTransactionIDttypeChartAEPutParamDesctkAECommandClasstAESendt    SEND_MODEtkAENormalPrioritytkAEDefaultTimeouttErrortostsystemtSTART_TERMINALttimetsleep(tcommandt termAddressttheEventt commandDesctwhy((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/terminalcommand.pytruns   t__main__sls -l(t__doc__twarningsRRRtCarbonRtCarbon.AppleEventst TERMINAL_SIGRt
kAENoReplyRRt__name__(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/terminalcommand.pyt<module>
s