RubyOSA is a bridge that connects Ruby to the Apple Event Manager infrastructure, automatically populating the API according to the target application's scriptable definition. In other words, it allows you to do in Ruby whatever you could do in AppleScript.