Skip to content

Shows the currently playing Spotify song, artist and track in a notification from a hotkey

License

Notifications You must be signed in to change notification settings

blackspike/spotify-whodis-alfred-workflow

Repository files navigation

Spotify WhoDis Alfred Workflow

A simple Alfred workflow to show the currently playing Spotify song, artist and track in a macOS notification via a hotkey

Prerequisites

Download and Install

  1. Download latest version (1.0.0) here: WhoDis.alfredworkflow
  2. Double click the WhoDis.alfredworkflow file and it will install

Preview

Who Dis notification preview

Applescript

on alfred_script(q)

	tell application "Spotify"
		set ctrack to the current track
		set cartist to the artist of ctrack as text
		set cname to the name of ctrack as text
		set calbum to the album of ctrack as text

		set strJSON to "{\"alfredworkflow\": {\"variables\": {"

		set strJSON to strJSON & "\"NAME\": \"" & cname & "\", "
		set strJSON to strJSON & "\"ARTIST\": \"" & cartist & "\", "
		set strJSON to strJSON & "\"ALBUM\": \"" & calbum & "\", "

		set strJSON to strJSON & "}}}"

		return strJSON

	end tell

end alfred_script

Who Dis icon

About

Shows the currently playing Spotify song, artist and track in a notification from a hotkey

Resources

License

Stars

Watchers

Forks

Packages

No packages published