AppleScript for Spotify
Commands
Play/Pause
tell application "Spotify"
playpause
end tell
Get ID of current track
tell application "Spotify"
get id of current track
end tell
Get url of current track
tell application "Spotify"
get artwork url of current track
end tell
Next/Previous Track
tell application "Spotify"
next track
end tell
previous
for previous track.
Increase/Decrease Volume
tell application "Spotify"
set sound volume to sound volume + 5
end tell
!!! note "sound volume"
sound volume property is read only