From: Stephen Schor Date: 2007-12-25T12:23:49+09:00 Subject: Automating OS X with Ruby. ------=_Part_6654_29712409.1198553033967 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Howdy, I just upgraded to leopard and thought it would be a good opportunity to learn automation in OS X. I started playing around with Ruby OSA (http://rubyosa.rubyforge.org/). Many of the 'hello world' applications look something like: require 'rbosa' itunes = OSA.app('iTunes') track = itunes.current_track puts track.name # "Over The Rainbow" However - I can't interact with the *itunes* object unless I manually open the application. After I manually open it - I can call nifty methods like itunes.play() and itunes.stop(). I tried calling itunes.open() but that wouldn't launch the application. After combing over RDocs and the Ruby OSA mailing list - I didn't see anything too helpful. Does anyone have experience with the Ruby OSA library? Do you have a different, favorite way to automate OS X? What sites do you find most helpful in learning about OS X automation? -Stephen ------=_Part_6654_29712409.1198553033967--