Re: [Pythonmac-SIG] Applescript equivalent in appscript

2008-06-08 Thread Daniel Lord
On Jun 7, 2008, at 15:46 PM, Rajanikanth Jammalamadaka wrote: Thanks a lot for the links Jordan. Could you tell me why there is a "u" before some names in appscript for example: menus[u'Apple'] That's the Python code to designate a Unicode string. Daniel __

Re: [Pythonmac-SIG] Applescript equivalent in appscript

2008-06-07 Thread Rajanikanth Jammalamadaka
Thanks a lot for the links Jordan. Could you tell me why there is a "u" before some names in appscript for example: menus[u'Apple'] Thanks, Raj On Sat, Jun 7, 2008 at 12:52 PM, Jordan Baker <[EMAIL PROTECTED]> wrote: > On 7-Jun-08, at 3:14 PM, Daniel Lord wrote: >> >> On Jun 7, 2008, at 11:48

Re: [Pythonmac-SIG] Applescript equivalent in appscript

2008-06-07 Thread Jordan Baker
On 7-Jun-08, at 3:14 PM, Daniel Lord wrote: On Jun 7, 2008, at 11:48 AM, Rajanikanth Jammalamadaka wrote: Suppose the application pops up a window while its running and gives me two choices: Ok or Cancel how can I tell it to select the Ok option always? I don't have time to work up a demo ri

Re: [Pythonmac-SIG] Applescript equivalent in appscript

2008-06-07 Thread Rajanikanth Jammalamadaka
Thanks very much for the link Daniel. Raj On Sat, Jun 7, 2008 at 12:14 PM, Daniel Lord <[EMAIL PROTECTED]> wrote: > > On Jun 7, 2008, at 11:48 AM, Rajanikanth Jammalamadaka wrote: > >> Thanks for your reply Laurent. >> >> Also, could somebody tell me how to do this: >> >> Suppose the application

Re: [Pythonmac-SIG] Applescript equivalent in appscript

2008-06-07 Thread Daniel Lord
On Jun 7, 2008, at 11:48 AM, Rajanikanth Jammalamadaka wrote: Thanks for your reply Laurent. Also, could somebody tell me how to do this: Suppose the application pops up a window while its running and gives me two choices: Ok or Cancel how can I tell it to select the Ok option always? I do

Re: [Pythonmac-SIG] Applescript equivalent in appscript

2008-06-07 Thread Rajanikanth Jammalamadaka
Thanks for your reply Laurent. Also, could somebody tell me how to do this: Suppose the application pops up a window while its running and gives me two choices: Ok or Cancel how can I tell it to select the Ok option always? Thanks, Rajanikanth On Sat, Jun 7, 2008 at 6:12 AM, Pierron Laurent <[

Re: [Pythonmac-SIG] Applescript equivalent in appscript

2008-06-07 Thread Pierron Laurent
Another idea : put your script in myscript.scpt In python write : from subprocess import Popen p = Popen("osascript" + " myscript.scpt", shell=True) sts = os.waitpid(p.pid, 0) See : http://docs.python.org/lib/node536.html Look at man osascript, to know more about osascript. --- Laurent PIERRO

Re: [Pythonmac-SIG] Pythonmac-SIG] Applescript equivalent in appscript

2008-06-07 Thread has
Rajanikanth Jammalamadaka wrote: Could some tell me what would be the appscript equivalent of the following applescript? tell application "SomeApplication" activate open "some file" delay 300 quit end tell ASTranslate

[Pythonmac-SIG] Applescript equivalent in appscript

2008-06-06 Thread Rajanikanth Jammalamadaka
Hi! Could some tell me what would be the appscript equivalent of the following applescript? tell application "SomeApplication" activate open "some file" delay 300 quit end tell Also, is it possible to call apple scripts from appscript? Ideally, I just want to use