Skip to content

Instantly share code, notes, and snippets.

@todd
todd / current_spotify_song.scpt
Last active April 24, 2019 10:00
AppleScript to Get Current Song from Spotify formatted for Tmux Status Bar
tell application "System Events"
set processList to (name of every process)
end tell
if (processList contains "Spotify") is true then
tell application "Spotify"
set artistName to artist of current track
set trackName to name of current track
set symbol to "◻︎"
set col to "red"