• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iTunes: play selected track next
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: elementary 'display dialog' question
  • Next by Date: Newbe- Rename file names
  • Previous by thread: Re: CSV file to Tab Delimited for use in spreasheet
  • Next by thread: Newbe- Rename file names
  • Index(es):
    • Date
    • Thread