/media should be where the files are on the NAS device. The script only checks 
that the end of the Mac path matches, so the leading /Volumes shouldn't be an 
issue. 

The problem looks like the "<missing value>" thing - is that what actually 
appears? It should be the path to the file on the Mac. That implies your iTunes 
doesn't know where its files are, which would be a bit worrying! 

I'll add the perl path, I'd thought I'd done that before!

James

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of slope_rabbit
Sent: 21 September 2009 15:14
To: [email protected]
Subject: Re: [SlimDevices: Plugins] Question about iTunesUpdate and ReadyNas


Thanks for the response.  I realized that the perl script doesn't have a path 
to perl in it.  It executed on the command line when run as suggested.  It also 
works to add #!/usr/bin/perl as the first line of the script - this is standard 
for unix like OSs.

It ran with just one song in the file, but didn't seem to work because it did 
not find the right path to the files.  The files are in /Volumes/media and it 
told iTunes to look in /media.

$ perl ./iTunesUpdate.pl /Volumes/media/Music/Playlists/iTunes_Hist.txt

==logTrackToiTunes()
Searching iTunes for "R.E.M. Star Me Kitten"
Attempting to make connection to iTunes...

-- script --
tell application "iTunes"
Version
end tell
-- result --
"9.0"
-- done --
result: 9.0
Connection established to iTunes: 9.0

-- script --
tell application "iTunes"
search library playlist 1 for "R.E.M. Star Me Kitten"
end tell
-- result --
{file track id 18246 of library playlist id 16346 of source id 48 of 
application "iTunes"}
-- done --
result: [
        <file track id 18246 of library playlist id 16346 of source id 48> ]

-- script --
tell application "iTunes"
location of (file track id 18246 of library playlist id 16346 of source id 48) 
end tell
-- result --
missing value
-- done --
result: <missing value>
Checking for: /media/Music/iTunes/iTunes Music/R.E.M_/Automatic For The
People/09 Star Me Kitten.mp3
False Match:  missing value
Track not found in iTunes


--
slope_rabbit
------------------------------------------------------------------------
slope_rabbit's Profile: http://forums.slimdevices.com/member.php?userid=32922
View this thread: http://forums.slimdevices.com/showthread.php?t=68130

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does 
not intend to waive confidentiality or privilege. Use of this email is 
prohibited when received in error. We may monitor and store emails to the 
extent permitted by applicable law.
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to