Calling Mac programs from Python instead of from AppleScript
kw at codebykevin.com
Wed Mar 19 21:10:38 CET 2008
dvschorre at sbcglobal.net wrote:
> When I'm running Script Editor, I can get Maya to draw a sphere by
> tell application "Maya"
> execute "sphere"
> end tell
> When I try this using Python, I get this error message:
> IDLE 1.2.2
> Traceback (most recent call last):
> File "<pyshell#0>", line 1, in <module>
> NameError: name 'app' is not defined
> Maybe I need to load some libraries first.
> Please help me to get started.
> Dewey V. Schorre
Take a look at appscript:
Code by Kevin
More information about the Python-list