What is appscript?

Appscript is a high-level, user-friendly Apple event bridge that allows you to control scriptable Mac OS X applications from Python, Ruby and Objective-C. Appscript makes these languages serious alternatives to Apple's own AppleScript language for automating your Mac.

For example, to get the value of the first paragraph of the topmost document in TextEdit using Python/Ruby appscript:

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

Benefits

Appscript provides:

Appscript supports Mac OS X 10.3.9 and later.

More info

To find out more about each version of appscript:

Developers interested in porting appscript to other languages can contact the appscript maintainer directly.