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