From jwmuchow at gmail.com Sat Mar 8 23:59:15 2008 From: jwmuchow at gmail.com (john muchow) Date: Sat, 8 Mar 2008 22:59:15 -0600 Subject: [Rubyosa-discuss] procNotFound error In-Reply-To: <834cf1b30803082057g3237d3c9yeb63c3faafe6d40@mail.gmail.com> References: <834cf1b30803082057g3237d3c9yeb63c3faafe6d40@mail.gmail.com> Message-ID: <834cf1b30803082059i5d5f975ehe07073e05c95fa6e@mail.gmail.com> I am getting an error running a simple ruby script. The script looks as follows: require 'rbosa' app = OSA.app('iTunes') puts app.current_track.name The error is as follows: /sw/lib/ruby/site_ruby/1.8/rbosa.rb:558:in `__send_event__': Cannot send Apple Event 'coregetd' : procNotFound (-600) (RuntimeError) from /sw/lib/ruby/site_ruby/1.8/rbosa.rb:558:in `name' Any ideas? Thanks John ~~~~~~~~ MacDeveloperTips.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyosa-discuss/attachments/20080308/c9cba373/attachment.html From alxv at mac.com Tue Mar 18 14:49:17 2008 From: alxv at mac.com (Alexander Veenendaal) Date: Tue, 18 Mar 2008 18:49:17 +0000 Subject: [Rubyosa-discuss] Listing and adding tracks in iTunes Message-ID: Hello, I'm attempting to add a track to a playlist as per the recommended way I found in the list archives: app = OSA.app('itunes') ps = app.sources[0].playlists.find {|p| p.name == 'Party Shuffle'} track = app.sources[0].library_playlists[0].tracks[555] app.add(track.get.location,ps) however, 'track.get.location' causes the following error: RuntimeError: Cannot coerce desc to type furl : fnfErr (-43) from /usr/local/lib/ruby/gems/1.8/gems/rubyosa-0.4.0/lib/rbosa.rb: 999:in `__data__' ... any ideas ? From statonjr at gmail.com Tue Mar 18 15:24:02 2008 From: statonjr at gmail.com (Larry Staton Jr.) Date: Tue, 18 Mar 2008 15:24:02 -0400 Subject: [Rubyosa-discuss] Listing and adding tracks in iTunes In-Reply-To: References: Message-ID: Alexander - I don't have access to iTunes right now, but have you tried track.location.get? On Tue, Mar 18, 2008 at 2:49 PM, Alexander Veenendaal wrote: > > Hello, > > I'm attempting to add a track to a playlist as per the recommended > way I found in the list archives: > > app = OSA.app('itunes') > ps = app.sources[0].playlists.find {|p| p.name == 'Party Shuffle'} > track = app.sources[0].library_playlists[0].tracks[555] > app.add(track.get.location,ps) > > however, 'track.get.location' causes the following error: > > RuntimeError: Cannot coerce desc to type furl : fnfErr (-43) > from /usr/local/lib/ruby/gems/1.8/gems/rubyosa-0.4.0/lib/rbosa.rb: > 999:in `__data__' > ... > > any ideas ? > > > > _______________________________________________ > Rubyosa-discuss mailing list > Rubyosa-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyosa-discuss > -- Larry Staton Jr. E-mail/GoogleTalk: statonjr at gmail.com Blog: LinkedIn: From alxv at mac.com Tue Mar 18 15:44:20 2008 From: alxv at mac.com (Alexander Veenendaal) Date: Tue, 18 Mar 2008 19:44:20 +0000 Subject: [Rubyosa-discuss] Listing and adding tracks in iTunes In-Reply-To: References: Message-ID: <67A98698-1C65-48AC-96DC-3D15C98D580B@mac.com> No luck with that either: >> track.location.get NoMethodError: undefined method `location' for # from (irb):122 from :0 On 18 Mar 2008, at 19:24, Larry Staton Jr. wrote: > Alexander - > > I don't have access to iTunes right now, but have you tried > track.location.get? > > On Tue, Mar 18, 2008 at 2:49 PM, Alexander Veenendaal > wrote: >> >> Hello, >> >> I'm attempting to add a track to a playlist as per the recommended >> way I found in the list archives: >> >> app = OSA.app('itunes') >> ps = app.sources[0].playlists.find {|p| p.name == 'Party Shuffle'} >> track = app.sources[0].library_playlists[0].tracks[555] >> app.add(track.get.location,ps) >> >> however, 'track.get.location' causes the following error: >> >> RuntimeError: Cannot coerce desc to type furl : fnfErr (-43) >> from /usr/local/lib/ruby/gems/1.8/gems/rubyosa-0.4.0/lib/ >> rbosa.rb: >> 999:in `__data__' >> ... >> >> any ideas ? >> >> >> >> _______________________________________________ >> Rubyosa-discuss mailing list >> Rubyosa-discuss at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyosa-discuss >> > > > > -- > Larry Staton Jr. > E-mail/GoogleTalk: statonjr at gmail.com > Blog: > LinkedIn: From jared at jfine.org Tue Mar 18 16:09:45 2008 From: jared at jfine.org (Jared Fine) Date: Tue, 18 Mar 2008 16:09:45 -0400 Subject: [Rubyosa-discuss] Listing and adding tracks in iTunes In-Reply-To: <67A98698-1C65-48AC-96DC-3D15C98D580B@mac.com> References: <67A98698-1C65-48AC-96DC-3D15C98D580B@mac.com> Message-ID: <807992F8-6D52-41E2-935B-ACB7DCE4F625@jfine.org> I always found adding tracks with RubyOSA a bit tedious, in fact it took me several days to figure out how to add the current track to a playlist, and now I can't seem to remember how to do it again. On Mar 18, 2008, at 3:44 PM, Alexander Veenendaal wrote: > > No luck with that either: > >>> track.location.get > NoMethodError: undefined method `location' for # 0x129456d0> > from (irb):122 > from :0 > > > On 18 Mar 2008, at 19:24, Larry Staton Jr. wrote: > >> Alexander - >> >> I don't have access to iTunes right now, but have you tried >> track.location.get? >> >> On Tue, Mar 18, 2008 at 2:49 PM, Alexander Veenendaal >> wrote: >>> >>> Hello, >>> >>> I'm attempting to add a track to a playlist as per the recommended >>> way I found in the list archives: >>> >>> app = OSA.app('itunes') >>> ps = app.sources[0].playlists.find {|p| p.name == 'Party Shuffle'} >>> track = app.sources[0].library_playlists[0].tracks[555] >>> app.add(track.get.location,ps) >>> >>> however, 'track.get.location' causes the following error: >>> >>> RuntimeError: Cannot coerce desc to type furl : fnfErr (-43) >>> from /usr/local/lib/ruby/gems/1.8/gems/rubyosa-0.4.0/lib/ >>> rbosa.rb: >>> 999:in `__data__' >>> ... >>> >>> any ideas ? >>> >>> >>> >>> _______________________________________________ >>> Rubyosa-discuss mailing list >>> Rubyosa-discuss at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rubyosa-discuss >>> >> >> >> >> -- >> Larry Staton Jr. >> E-mail/GoogleTalk: statonjr at gmail.com >> Blog: >> LinkedIn: > > _______________________________________________ > Rubyosa-discuss mailing list > Rubyosa-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyosa-discuss