Re: [Pythonmac-SIG] Converting to AppleEvents

2005-12-08 Thread Piet van Oostrum
> Brian Ray <[EMAIL PROTECTED]> (BR) wrote: >BR> This seems to work well for now. However, is there a way to have >BR> os.system() wait till it's finished? In other words how to I get the >BR> osascript tool to not return until the script has actually finished. os.system does wait. -- Piet v

Re: [Pythonmac-SIG] Converting to AppleEvents

2005-12-07 Thread Dethe Elza
On Wed 2005-12-07, at Wed 2005-12-07T07:52 AM, Brian Ray wrote: [snipped] > 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. You p

Re: [Pythonmac-SIG] Converting to AppleEvents

2005-12-07 Thread Brian Ray
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

Re: [Pythonmac-SIG] Converting to AppleEvents

2005-12-07 Thread has
Brian Ray wrote: >I have an AppleScript I am calling with os.system(): > > with timeout of 3600 seconds > tell application "MyApp" > reload startup > end tell > end timeout > >I am interested in various methods to convert this to AppleE

[Pythonmac-SIG] Converting to AppleEvents

2005-12-06 Thread Brian Ray
Hi All: I have an AppleScript I am calling with os.system(): with timeout of 3600 seconds tell application "MyApp" reload startup end tell end timeout I am interested in various methods to convert this to AppleEvents. Any