andrehaveman/spotify-node-applescript — pull request #12 by mrnugget (2013-02-12 15:14:24+00:00)
Title: Refactor isRunning

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.