Elapsed Time in iTunes4

Hi guys, I am very new to applescript. I downloaded a pdf named iTunes_4.pdf from an applescript website which lists all events (calls?) that Applescript has in relation to iTunes.

But I did not see anything related to the elapsed time if the currently playing mp3. Does anything like that exist?

There’s a freeware editable AppleScript from Michael Reid in our ScriptBuilders section that does this…

http://scriptbuilders.net/category.php?search=1243

Seems like that only counts up the total running time of all tracks.

I don’t think there is anything in iTunes to output the elapsed time. Seems the only values available to applescript are static ones, like total length, title, bitrate, etc.

I think that what you are looking for is:

tell application "iTunes"
	set elapsedTime to player position
end tell

HTH,
Ross