
Open Spotify
tell application "Spotify"
activate
end tellPlay Specific Spotify Playlist
You amend “user:radiodj787” with your own Spotify Username.
You amend “playlist:0s7xNnFgFz9jLskwmBJ9kE” with your own Playlist ID. To obtain this go to the playlist, share and then you will see the playlist ID.
tell application "Spotify"
set sound volume to 100
set houseMusic to "spotify:user:radiodj787:playlist:0s7xNnFgFz9jLskwmBJ9kE"
play track houseMusic
end tellFade Out and Pause Spotify
set fadetime to 5
tell application "Spotify"
repeat with volumeset from 0 to 100 as integer
set sound volume to 100 - volumeset
delay fadetime / 100
end repeat
pause
end tellResume Spotify with Fade Up
tell application "Spotify"
play
set currentvolume to the sound volume
repeat with i from currentvolume to 100 by 2
set the sound volume to i
delay 0.1
end repeat
end tellResume Spotify (No Fade Up) (i.e. Play from pause)
tell application "Spotify"
set sound volume to 100
play
end tellResume Spotify (Next Track)
tell application "Spotify"
set sound volume to 100
play (next track)
end tellClose Spotify
tell application "Spotify"
quit
end tellDownload Sample File
If you found the above useful or want to download the QLab file, please do so below.