From: Dane Jensen Date: 2007-12-26T07:08:04+09:00 Subject: Re: Automating OS X with Ruby. On Dec 25, 2007, at 3:55 AM, Ryan Davis wrote: > > On Dec 24, 2007, at 19:23 , Stephen Schor wrote: > >> 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. > > I dunno about rubyosa, but applescript uses 'activate'. Indeed. itunes.activate will start it if it's not open.