Re: Calling Mac programs from Python instead of from AppleScript

2008-03-20 Thread has
On 19 Mar, 20:10, Kevin Walzer <[EMAIL PROTECTED]> wrote: > Take a look at appscript: > > http://appscript.sourceforge.net/ Also, once appscript is installed, don't forget to import it before use: from appscript import * app('Maya').execute('sphere') HTH has -- Control AppleScriptable applic

Re: Calling Mac programs from Python instead of from AppleScript

2008-03-20 Thread Python.Arno
On 19 mrt 2008, at 20:41, [EMAIL PROTECTED] wrote: > > When I'm running Script Editor, I can get Maya to draw a sphere by > typing: > > tell application "Maya" > execute "sphere" > end tell > > When I try this using Python, I get this error message: > > IDLE 1.2.2 app('Maya').execute('

Re: Calling Mac programs from Python instead of from AppleScript

2008-03-19 Thread Kevin Walzer
[EMAIL PROTECTED] wrote: > When I'm running Script Editor, I can get Maya to draw a sphere by > typing: > > tell application "Maya" > execute "sphere" > end tell > > When I try this using Python, I get this error message: > > IDLE 1.2.2 app('Maya').execute('sphere') > > Traceback (mo

Calling Mac programs from Python instead of from AppleScript

2008-03-19 Thread dvschorre
When I'm running Script Editor, I can get Maya to draw a sphere by typing: tell application "Maya" execute "sphere" end tell When I try this using Python, I get this error message: IDLE 1.2.2 >>> app('Maya').execute('sphere') Traceback (most recent call last): File "", line 1, in