[Python-checkins] python/dist/src/Lib/plat-mac terminalcommand.py,1.1,1.2
jvr@users.sourceforge.net
jvr@users.sourceforge.net
Sat, 21 Jun 2003 07:49:16 -0700
Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1:/tmp/cvs-serv17982
Modified Files:
terminalcommand.py
Log Message:
some old changes to this unused module
Index: terminalcommand.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/terminalcommand.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** terminalcommand.py 4 Jan 2003 21:44:21 -0000 1.1
--- terminalcommand.py 21 Jun 2003 14:49:14 -0000 1.2
***************
*** 29,39 ****
"""Run a shell command in a new Terminal.app window."""
termAddress = AE.AECreateDesc(typeApplSignature, TERMINAL_SIG)
! theEvent = AE.AECreateAppleEvent(kAEMiscStandards, kAEActivate,
! termAddress, kAutoGenerateReturnID,
! kAnyTransactionID)
try:
! theEvent.AESend(SEND_MODE, kAENormalPriority,
! kAEDefaultTimeout)
except AE.Error, why:
if why[0] != -600: # Terminal.app not yet running
--- 29,39 ----
"""Run a shell command in a new Terminal.app window."""
termAddress = AE.AECreateDesc(typeApplSignature, TERMINAL_SIG)
! theEvent = AE.AECreateAppleEvent(kAECoreSuite, kAEDoScript, termAddress,
! kAutoGenerateReturnID, kAnyTransactionID)
! commandDesc = AE.AECreateDesc(typeChar, command)
! theEvent.AEPutParamDesc(kAECommandClass, commandDesc)
try:
! theEvent.AESend(SEND_MODE, kAENormalPriority, kAEDefaultTimeout)
except AE.Error, why:
if why[0] != -600: # Terminal.app not yet running
***************
*** 41,52 ****
os.system(START_TERMINAL)
time.sleep(1)
! theEvent.AESend(SEND_MODE, kAENormalPriority,
! kAEDefaultTimeout)
!
! theEvent = AE.AECreateAppleEvent(kAECoreSuite, kAEDoScript, termAddress,
! kAutoGenerateReturnID, kAnyTransactionID)
! commandDesc = AE.AECreateDesc(typeChar, command)
! theEvent.AEPutParamDesc(kAECommandClass, commandDesc)
! theEvent.AESend(SEND_MODE, kAENormalPriority, kAEDefaultTimeout)
--- 41,45 ----
os.system(START_TERMINAL)
time.sleep(1)
! theEvent.AESend(SEND_MODE, kAENormalPriority, kAEDefaultTimeout)