content: set spotify_state to false
  set itunes_state to false
  
  if is_app_running("Spotify") then
    tell application "Spotify" to set spotify_state to (player state as text)
  end if
  if is_app_running("iTunes") then
    tell application "iTunes" to set itunes_state to (player state as text)
  end if
  (* Whatever other music applications you use *)
  
  if spotify_state is equal to "playing" then
    tell application "Spotify"
      set track_name to name of current track
      set artist_name to artist of current track
      return "♫ " & track_name & " - #[bold]" & artist_name & "#[nobold]"
    end tell
  else if itunes_state is equal to "playing" then
    tell application "iTunes"
      set track_name to name of current track
      set artist_name to artist of current track
      set track_is_loved to loved of current track
      if track_is_loved then
        set loved_status to "♥ "
      else
        set loved_status to ""
      end if
      return loved_status & "♫ " & track_name & " - #[bold]" & artist_name & "#[nobold]"
    end tell
  else
    return ""
  end if
  
  on is_app_running(app_name)
    tell application "System Events" to (name of processes) contains app_name
  end is_app_running
  