• 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
Music app and play with once
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Music app and play with once


  • Subject: Music app and play with once
  • From: "@lbutlr via AppleScript-Users" <email@hidden>
  • Date: Tue, 28 Apr 2020 17:38:43 -0600

It used to be that the following script would play the track and then stop
playing back. It no longer does so, ad continues to the next track.

tell application "Music"
        play track "16-Bit Blarney Alert" with once
end tell

Instead I have to do something like:

tell application "Music"
        set tempList to (make user playlist)
        duplicate (every track of library playlist 1 whose name is "16-Bit
Blarney Alert") to tempList
        play tempList
end tell

This leave a “Playlist #” behind every time I run the script, and I cannot
delete the tempList of the file does not play back.

Missing anything?



--
Friction can be a real drag.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Is there a way to send a keystroke to a background app without an AppleScript dictionary?
  • Next by Date: InDesign; using objects from CC Libraries?
  • Previous by thread: Re: Is there a way to send a keystroke to a background app without an AppleScript dictionary?
  • Next by thread: InDesign; using objects from CC Libraries?
  • Index(es):
    • Date
    • Thread