Skip to content

This AppleScript workflow detects if a song is being played on Apple Music or Spotify, then extracts the names of both the artist and the song, composes a string using a template and copies it to your clipboard.

License

Notifications You must be signed in to change notification settings

oneeyedman/nowplaying-for-alfred

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NowPlaying for Alfred

NowPlaying for Alfred

This AppleScript workflow detects if a song is being played on Apple Music or Spotify, then extracts the names of both the artist and the song, composes a string using a template and copies it to your clipboard.

Template

This is the template used to compose the final string. The URL will only appear if the song is played on Spotify.

♬ <SONG_NAME> - <ARTIST_NAME> [URL] #Spotify|AppleMusic #NowPlaying

Sample

 ♬ Woman - Wolfmother  #AppleMusic #NowPlaying
♬ Royals - Lorde http://open.spotify.com/track/4zztp85oS36ijgAWwyhX8p #Spotify #NowPlaying

Supported applications

Spotify

Apple Music


Installation

Download the .alfredworkflow file from the dist folder, double click it, and that's it!

Run it

  1. Play some stuff on Apple Music or Spotify.
  2. Launch Alfred, type now, hit enter and the string should be in your clipboard ;)

About

This AppleScript workflow detects if a song is being played on Apple Music or Spotify, then extracts the names of both the artist and the song, composes a string using a template and copies it to your clipboard.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published