Post

Replies

Boosts

Views

Activity

Comment on Trouble with AppleScript Permissions and ShazamKit Integration in macOS App
tell application "Music" set thePlaylist to playlist "Playlist Plunderer" if (count of tracks of thePlaylist) < 1 then display dialog "Playlist does not have any tracks." return end if repeat with theTrack in tracks of thePlaylist set trackDuration to duration of theTrack -- Play track at specified percentages repeat with p in {0.15, 0.5, 0.75} play theTrack delay 1 set player position to trackDuration * p delay 4 stop end repeat end repeat end tell
Jul ’24