Yes, that sounds like the issue. It might be an integer that is needed,
and probably a different base than the regular perl/unix one.

Here's the only piece of code I could find specific to iTunes (in
applescript):

                set cd to (get current date)
                set newdate to (cd - ((thismany as integer) * days))
                repeat with t in sel
                        set t to contents of t
                        if class of t is file track then
                                set played date of t to newdate
                        end if

>From the rest of the code, thismany is a number in days. 

When I run your script with a file with a known date, it kicks out the
result:
tell application "iTunes"
played date of (file track id 10772 of library playlist id 10092 of
source id 37)
end tell
-- result --
date "Thursday 10 August 2006 22:44:57"
-- done --
result: <date "Thursday 10 August 2006 22:44:57">
*date "Thursday 10 August 2006 22:44:57"* vs *2006-12-07 23:40:05*

So that may be the issue, it is returning the long date and feeding it
the short date format makes it choke.

Greg


-- 
gsalton
------------------------------------------------------------------------
gsalton's Profile: http://forums.slimdevices.com/member.php?userid=7598
View this thread: http://forums.slimdevices.com/showthread.php?t=30314

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

Reply via email to