master
if application "Spotify" is running then tell application "Spotify" set theState to player state return theState end tell end if