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:
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
After I manually open it - I can call nifty methods like itunes.play()
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?