Skip to content

Instantly share code, notes, and snippets.

@mwerner
Created April 9, 2012 18:19
Show Gist options
  • Save mwerner/2345205 to your computer and use it in GitHub Desktop.
Save mwerner/2345205 to your computer and use it in GitHub Desktop.
artist_name=`arch -i386 osascript -e'tell application "Spotify"' -e'get artist of current track' -e'end tell'`
song_title=`arch -i386 osascript -e'tell application "Spotify"' -e'get name of current track' -e'end tell'`
artist=`echo $artist_name | sed "s/[[:space:]]/%20/g"`
title=`echo $song_title | sed "s/[[:space:]]/%20/g"`
song=`curl -s "http://makeitpersonal.co/lyrics?artist=$artist&title=$title"`
echo -e "$artist_name - $song_title\n$song" | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment