appscript

About py-appscript

Python appscript (py-appscript) is a high-level, user-friendly Apple event bridge that allows you to control scriptable Mac OS X applications using ordinary Python scripts.

For example, to get the value of the first paragraph of the topmost document in TextEdit:

app('TextEdit').documents['Read Me'].paragraphs[1].get()

This is equivalent to the AppleScript statement:

tell application "TextEdit"
    get paragraph 1 of document "Read Me"
end tell

Py-appscript requires Python 2.3+ and Mac OS X 10.3 or later.

File releases

The current file release is appscript 0.19.0.

This is the first beta release of Python appscript. If you encounter any problems, please report them to the appscript maintainer.

Python appscript has undergone significant changes for the 0.19.0 release. Most of these modifications are internal and should not affect existing users. Changes that may affect some 0.18.x-based scripts are described on the installation page and in the py-appscript documentation.

The py-appscript distribution is for use with Python 2.x only. A Python 3.0-compatible version is currently under development.