"get duration" no longer works?

GO TO ADMIN PANEL > ADD-ONS AND INSTALL VERTIFORO SIDEBAR TO SEE FORUMS AND SIDEBAR

Philip Sharman

New member
Joined
Aug 15, 2003
Messages
3
Points
0
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

New member
Joined
Aug 15, 2003
Messages
3
Points
0
never mind -- it is working now

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.
 
Last edited:
Top