phpfunk/alfred-spotify-controls — pull request #2 by gfontenot (2011-12-16 15:34:33+00:00)
Title: Update the URL command to return the HTTP url instead of the Spotify url

The Spotify urls are almost useless for sharing purposes. I have never wanted to get the spottily url. The http url is much more useful. I updated the extension to parse the id, then built the url manually. Code changes below (since GitHub sees this as a binary)

else if q is equal to "url" then
set notify_title to "Spotify URL"
set track_id to id of current track
set Applescript's text item delimiters to ":"
set track_id to third text item of track_id
set Applescript's text item delimiters to ""
set real_url to "http://open.spotify.com/track/" & track_id
set notify_desc to real_url