BlueSense AppleScripts
How to play Spotify player for Mac in AppleScript
Play Spotify Mac player.
script SpotifyPlayPause
try
tell application "System Events"
activate
set runningApp to processes whose bundle identifier is "com.spotify.client"
end tell
if runningApp is not {} then
tell application "Spotify" to play
end if
on error errString number errorNumber
log (errString)
end try
end script