After spending more time with AppleScript I found a lot nicer method of determining
whether Spotify is running or not.
This shrinks isRunning down to one, easy-to-understand line, using running
attribute of the application Spotify. Apparently every application has a
running attribute, which I didn't know about before.
After spending more time with AppleScript I found a lot nicer method of determining whether Spotify is running or not.
This shrinks
isRunning
down to one, easy-to-understand line, usingrunning
attribute of the application Spotify. Apparently every application has arunning
attribute, which I didn't know about before.