View Full Version : Elapsed Time iTunes Script
ahdustin
12-05-2004, 11:15 PM
Is there anyway to find the elapsed time of a song in iTunes through applescript or anything else?
Thanks
-ahdustin
bramley
12-07-2004, 05:34 AM
Yes,
Open the script dictionary for iTunes, open 'iTunes suite', 'Classes' and click on application. This shows that the application has the property 'player position' to report how many seconds of the current track have been played.
Therefore, the following script
tell application "iTunes"
display dialog (player position as string)
end tell
will display the appropriate value when run as a track is playing.
ahdustin
12-07-2004, 08:45 AM
Thank you so much.
-Dustin
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.