ok, i adjusted the code to look like:

my $library = $itunes->obj( 'library' );
my $track = $library->obj( 'track' => whose( 'database_ID', 'equals', $_[1] ));

which i think should be more accurate, but i'm still getting no track
object back.

back to the mines!


On Tue, 27 Jul 2004 07:01:47 -0700, brian pink <[EMAIL PROTECTED]> wrote:
> So I'm using Mac::Glue to talk to iTunes. I've got this line that
> works in AppleScript:
> 
> play some track of library playlist 1 whose database id is x -- (
> where x is a known db id. )
> 
> i've tried converting this to Mac::Glue like this:
> 
> my $track = $itunes->obj( 'track' => whose( 'database_id', 'equals', $_[1] ));
> 
> and I seem to get an object back, i.e. no errors, but if I do this:
> 
> print( Dumper( $track->get());
> 
> I get $VAR1=undef; Obviously, something is wrong, but the whose seems
> to be syntactically correct, so I'm wondering if the omission of the
> "some" from the AppleScript is affecting it or what. I also have the
> library identifier in the AppleScript, which I have just completely
> ignored. Any insights are appreciated, and I'll write again if I find
> any solutions.
> 
> - brian
>

Reply via email to