PDA

View Full Version : "get duration" no longer works?


Philip Sharman
08-14-2003, 09:16 PM
I've seen a number of sample scripts using "get duration", but it doesn't work for me.

For example:

tell application "iTunes"
get duration of current track
end tell

gives me a "missing value" error. This is using iTunes 4.0.1. I don't see 'duration' listed as a track property in the iTunes directory, so I'm guessing something changed with version 4. Is there a workaround?

Thanks,
Philip.

Philip Sharman
08-14-2003, 09:20 PM
Aha ... some of the tunes show "Not available" for the time in iTunes. The script works okay if the time is shown, but not if the time is not available.