iTunes: play selected track next
iTunes: play selected track next
- Subject: iTunes: play selected track next
- From: "Robert C. Jacobson" <email@hidden>
- Date: Thu, 25 Jul 2002 08:44:32 -0400
I made a script that will make iTunes play whatever track you have
selected in the browser after the currently playing track:
tell application "iTunes"
set cur_track to the current track
set dur to the duration of the current track
set selected_track to the item 1 of selection
repeat until ((dur - player position) > 1)
delay 1
end repeat
play selected_track
end tell
It works, but can anyone suggest improvements? Am I going about it
all wrong? :)
Hmmm, now that I'm thinking about it -- what happens on if the
currently playing track is one which I've set the stop time to be,
say 30 seconds before the track duration?
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Robert Jacobson email@hidden
BS, Aeronautical Engineering Univ. of Md., College Park
Flight Ops. Team - SOlar Heliospheric Observatory (SOHO)
(301) 286-1591
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.