[Pythonmac-SIG] Converting to AppleEvents
Brian Ray
bray at sent.com
Wed Dec 7 16:52:21 CET 2005
Thanks for your guidance. I will play with all three and see where it
gets me.
Also, with:
On Dec 7, 2005, at 5:57 AM, has wrote:
> 1. Execute AppleScript code via os.system() and osascript:
>
> os.system('''
> osascript -e 'with timeout of 3600 seconds
> tell application "TextEdit"
> get name
> end tell
> end timeout'
> ''')
This seems to work well for now. However, is there a way to have
os.system() wait till it's finished? In other words how to I get the
osascript tool to not return until the script has actually finished.
Brian
http://brianray.chipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20051207/7f9fb874/attachment.htm
More information about the Pythonmac-SIG
mailing list