Here's the script: --- tell application "iTunes"
set t to current date log year of t
end tell
set t to current date log year of t ---
and here's the log output: --- tell application "iTunes" current date date "Tuesday, December 12, 2006 7:16:14 PM" (*year*) end tell tell current application current date date "Tuesday, December 12, 2006 7:16:14 PM" (*2006*) end tell ---
the line (*year*) should read (*2006*)
when I try telling a different app, like Safari, it has no problem
when try extracting a different component of the date, like month, it has no problem
Why does iTunes choke on the year of a date? Is this just a bug?
dave r
|