Python tricks with applescript in OS-X

J

joanmg

Greetings,

I've written a short document with some working examples of how to
interface python with other applications in OS-X via applescript (had
to spend some time figuring it out, and thought I might as well write
it down). The examples include asking Google Earth for the latitude
and longitude of the point at the center of its screen, or using the
finder to pop-up a dialog window to get input from the user:

http://juanreyero.com/article/python/os-x-python.html

Cheers,

Juan
http://juanreyero.com
 
K

Kevin Walzer

Greetings,

I've written a short document with some working examples of how to
interface python with other applications in OS-X via applescript (had
to spend some time figuring it out, and thought I might as well write
it down). The examples include asking Google Earth for the latitude
and longitude of the point at the center of its screen, or using the
finder to pop-up a dialog window to get input from the user:

http://juanreyero.com/article/python/os-x-python.html

Cheers,

Juan
http://juanreyero.com

Thanks for these examples.

There is also a Python package that allows you to interface with an
application's AppleScript dictionary via Python itself, without the
intermediate step of using the osascript command-line tool:

http://appscript.sourceforge.net/

You might find that of interest.

--Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top