Announcing the first public release of Ruby appscript, a high-level,
user-friendly Apple event bridge that allows you to control scriptable
Mac OS X applications using ordinary Ruby scripts.
http://rb-appscript.rubyforge.org/
Appscript makes Ruby a serious alternative to Apple’s own AppleScript
language for automating your Mac. Here’s a quick example:
require “appscript”
AS.app(‘TextEdit’).documents.end.make(
:new => :document,
:with_properties => {:text => “Hello World!\n”})
Ruby appscript is a port of the popular Python appscript package
http://appscript.sourceforge.net/, so while this initial release may
lack a little polish in places, it’s based on a mature, well-proven
architecture that has been developed, tested and refined over several
years. As a result, rb-appscript 0.1.1 offers a level of power,
robustness and performance that is already very close to
py-appscript’s, with further improvements to come.
The rb-appscript package includes additional example scripts,
documentation and a tutorial, and can be downloaded from:
http://rubyforge.org/frs/?group_id=2346
Forums for discussing rb-appscript are also available. Questions, bug
reports, suggestions for improvements, etc. will all be very welcome.
Enjoy!