RubyOSA is one of my new projects. It is a bridge that maps the scriptable definition of an application into Ruby, and do all the AppleEvent stuff transparently for you. You can do in Ruby what you did in AppleScript.
require 'rbosa'
app = OSA.app('iTunes')
track = app.current_track
p track # -> #<OSA::Itunes::File_track:0x1495e20>
p track.name # -> "Over The Rainbow"
p track.artist # -> "Keith Jarrett"
p track.duration # -> 362
p track.date_added.to_s # -> "2006-06-30"
p track.enabled? # -> true
It is meant to replace the old RubyAEOSA. I discussed with Hisa-san about merging the features in a single project but at the end we agreed that both bridges were different and decided that RubyAEOSA should be deprecated in favor of RubyOSA.
The project is still in a preliminary shape but it is functional. I will make a release once some important points are done though. In the meantime feel free to check out the sources, give it a whirl and report me some feedback. The source tree has already some sample code, including an elite curses-based iTunes controller.
Oh, and I would like to thank my employer to allow me to release the sources.