Running a swedish version of iTunes 7.1.1 and the 2.1 itunesUpdate.
Tried to update my itunes manually with the perl script. But it wont
work.

It seems that the playcont is updated, on some of the tracks. But no
rating, and no played-time.



perl itunesUpdate.pl /Volumes/Public/Musik/Playlists/iTunes_Hist.txt
==logTrackToiTunes()
Searching iTunes for "The Lucksmiths Great Lengths"
Attempting to make connection to iTunes...

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

-- script --
tell application "iTunes"
search library playlist 1 for "The Lucksmiths Great Lengths"
end tell
-- result --
{file track id 11841 of library playlist id 6579 of source id 39 of
application "iTunes"}
-- done --
result: [
<file track id 11841 of library playlist id 6579 of source id
39>
]

-- script --
tell application "iTunes"
location of (file track id 11841 of library playlist id 6579 of source
id 39)
end tell
-- result --
alias "PUBLIC:Musik:The Lucksmiths:Warmer Corners:03 Great
Lengths.mp3"
-- done --
result: <alias "PUBLIC:Musik:The Lucksmiths:Warmer Corners:03 Great
Lengths.mp3">
Found track in iTunes: Musik/The Lucksmiths/Warmer Corners/03 Great
Lengths.mp3
Marking as played in iTunes

-- script --
tell application "iTunes"
played count of (file track id 11841 of library playlist id 6579 of
source id 39)
end tell
-- result --
0
-- done --
result: undef

-- script --
tell application "iTunes"
set played count of (file track id 11841 of library playlist id 6579 of
source id 39) to 1
end tell
-- result --
EVADr?????
-- done --
result: <EVADr?????>

-- script --
tell application "iTunes"
played date of (file track id 11841 of library playlist id 6579 of
source id 39)
end tell
-- result --
missing value
-- done --
result: <missing value>
*missing value* vs *01 June 2007 01:10:39*

-- script --
tell application "iTunes"
set played date of (file track id 11841 of library playlist id 6579 of
source id 39) to date "01 June 2007 01:10:39"
end tell
-- error --
-1753
-- done
Mac::AppleScript returned error (-1753)


-- 
Christo
------------------------------------------------------------------------
Christo's Profile: http://forums.slimdevices.com/member.php?userid=10824
View this thread: http://forums.slimdevices.com/showthread.php?t=35752

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to