Remember When We All Shared our Playlists?
Posted December 16th, 2008 @ 02:47pm by Erik J. Barzeski
Remember that period of time in blogging history when we all shared our playlists? Scripts and applications that maintained our "most recently played 20 songs" online were all the rage. I even wrote a few of my own.
Now, not so much.
Incidentally: Erik is listening to "Monday Morning" by Fleetwood Mac from the album "The Very Best of Fleetwood Mac" (2002). Erik has rated this song 4.0 stars and last played this song Saturday, October 28, 2006 4:07:50 pm.
-- Name
if name of currTrack is not "" then
set ctString to ctString & "\"" & name of currTrack & "\" "
else
set ctString to ctString & "a song "
end if
-- Artist
if artist of currTrack is not "" then
set ctString to ctString & "by " & artist of currTrack & " "
else
set ctString to ctString & "by an unknown artist "
end if
-- Album
if album of currTrack is not "" then
set ctString to ctString & "from the album \"" & album of currTrack & "\" "
end if
-- Year
if year of currTrack is not "" then
set ctString to ctString & "(" & year of currTrack & "). "
else
set ctString to ctString & ". "
end if
-- Rating
if rating of currTrack is not 0 then
set ctString to (ctString & "Erik has rated this song " & (rating of currTrack) / 20) & " stars"
else
set ctString to ctString & "Erik has not rated this song"
end if
-- Play date
if played date of currTrack is not missing value then
set ctString to ctString & " and last played this song " & played date of currTrack & "."
else
set ctString to ctString & " and has never played this song to completion before."
end if
get ctString
set the clipboard to ctString
end tell
Posted 16 Dec 2008 at 7:45pm #
Thank you Last.fm
🙂