content: #!/usr/bin/osascript
  #
  # now_playing.osascript
  #
  # Osascript to fetch the meta data of the currently playing
  # track in Spotify. This works only on Mac OS X.
  
  tell application "System Events"
    set myList to (name of every process)
  end tell
  if myList contains "Spotify" then
    tell application "Spotify"
      if player state is stopped then
        set output to "Stopped"
      else
        set trackname to name of current track
        set artistname to artist of current track
        set albumname to album of current track
        if player state is playing then
          set output to trackname & " | " & artistname & " | " & albumname & " | " & "Playing"
        else if player state is paused then
          set output to trackname & " | " & artistname & " | " & albumname & " | " & "Paused"
        end if
      end if
    end tell
  else
    set output to "Spotify not running"
  end if
  