any update on this? I have the same problem
pwootton wrote: > I'm seeing the same problem here after some upgrades. I'm running LMS > 7.7.1; OS X 10.7.3 and iTunes 10.5.3. Also iTunesUpdate is running in > direct mode. > > It's something odd happening in the Mac::AppleScript::Glue module. > I've traced the crash to the $iTunesHandle->current_date calls in the > iTunesUpdate Plugin module. If they're commented out then the server > doesn't crash (but you don't get the played date updated). However a > simple test script works fine, so it's something trickier than just the > call. I also put a call to current_date immediately after the > $iTunesHandle is initialised in iTunesUpdate; and it crashes there, as > well, so it's not a handle corruption. > > If I can figure how to create a new date object from scratch using the > Glue code I can probably patch this, but at the moment I can't see how > to do this :-( > > -- Sample test script > > Code: -------------------- > > > #!/usr/bin/perl > # > # Test applescript call to current_date in iTunes.... > # > use strict; > use warnings; > > use Mac::AppleScript::Glue::Application; > > my $iTunes = new Mac::AppleScript::Glue::Application('iTunes') > or die "Can't glue to iTunes: $!"; > > my $track = $iTunes->current_track; > print $track->artist,"\n"; > print $track->track_number, ': ', $track->name,"\n"; > print $track->album,"\n"; > > my $cdate = $iTunes->current_date; # crashes here in iTunesUpdate > print $cdate->{_ref},"\n"; > $track->set(played_date => $cdate); > > my $date = $track->played_date; > print $date->{_ref},"\n"; > -------------------- > > ------------------------------------------------------------------------ Scott's Profile: http://forums.slimdevices.com/member.php?userid=229 View this thread: http://forums.slimdevices.com/showthread.php?t=91737 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins