Post by Peter Cooper on October 17th, 2006
Rb-AppScript: Get AppleScript-style functionality in Ruby

- Ruby as an AppleScript Replacement?
- How to ditch AppleScript and use Ruby instead
- Rush: A Ruby Shell That Abstracts System Operations Into Ruby Ones


Rb-AppScript is an event bridge between Ruby and OS X that allows you to get AppleScript-esque control in OS X. The Appscript creators claim Appscript is a 'serious alternative' to AppleScript and it certainly looks good. Check out this example:
AS.app('TextEdit').documents[1].paragraphs[1].get
The equivalent AppleScript?
tell application "TextEdit"
get paragraph 1 of document 1
end tell
Appscript provides the system to perform remote procedure calls to OS X applications, converts values between Ruby and Apple classes, and allows developers to get full use out of OS X while still using Ruby's object oriented environment.

Click here to add on del.icio.us
Tweet This









October 18th, 2006 at 6:09 am
As serious as VBA for MS Office is :-)