Skip to content

Instantly share code, notes, and snippets.

@AstroCB
Created July 23, 2016 03:21
Show Gist options
  • Save AstroCB/560bd2d79fc3ab76d653d7d6f1379461 to your computer and use it in GitHub Desktop.
Save AstroCB/560bd2d79fc3ab76d653d7d6f1379461 to your computer and use it in GitHub Desktop.
Displays a notification containing information about the currently playing Spotify track (works best when assigned to a keyboard shortcut)
tell application "Spotify"
set currentArtist to artist of current track as string
set currentTrack to name of current track as string
display notification "\"" & currentTrack & "\" by " & currentArtist with title "Now Playing"
delay 1
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment