dougscripts.com

July 1 2015 - 5:07 pm

play with once Is Broken

(I have updated this post. See below.)

To play a track just once and then stop you're to do something like this, using the once modifier with the play command:

tell application "iTunes"

set aTrack to item 1 of selection

play aTrack with once

end tell

Well, that doesn't work in iTunes 12.2. The tracks just keep on coming. In fact, a few times some random track in some other playlist started playing afterwards or queues up in Up Next.

UPDATE (July 1, 2015, 6:39PM) - I think I may be wrong about this. I cannot replicate the original set of issues I describe above.

Site contents © 2001 - 2024 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Privacy.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
The one who says "it cannot be done" should not be interrupting the one who is doing it.