Spotify Applescripts – 0.5.2

Its been a while since I updated the Applescripts for Spotify, it looks like Spotify now supports Applescript directly. So I present the new updated scripts here. Credit Aaron Lidman who first brought this to my attention.

Play Pause

tell application "System Events"
	set MyList to (name of every process)
end tell
if (MyList contains "Spotify") is true then
	tell application "Spotify" to playpause
end if

Next Track

tell application "System Events"
	set MyList to (name of every process)
end tell
if (MyList contains "Spotify") is true then
	tell application "Spotify" to next track
end if

Previous Track

tell application "System Events"
	set MyList to (name of every process)
end tell
if (MyList contains "Spotify") is true then
	tell application "Spotify" to previous track
end if