AppleScript for Music.app: Trying to determine if there is a previous and next track in a playlist
I am trying to modify the action of the previous track and next track commands to not take action if current track is the first or last track in the playlist. Present behavior is for play to stop and “current playlist” to become invalid if command goes off either end of the end of the playlist. (Using for controlling Music.app with Bitfocus Companion and Stream Deck controllers triggering AppleScripts)
Using AppleScript in Music/iTunes, how do I find the next tracks to be played?
I’m trying to write AppleScript that will find which tracks Music will play after the current track, that is, the upcoming tracks.