Created
January 26, 2013 19:32
-
-
Save kristianfreeman/4644021 to your computer and use it in GitHub Desktop.
Rdio now playing - nice in TextExpander
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Rdio" | |
if player state is playing then | |
set the_string to "\"" & name of current track & "\"" | |
if artist of current track is not "" then | |
set the_string to the_string & " - " & artist of current track | |
end if | |
if album of current track is "" then | |
set the_string to the_string | |
else if album of current track is not "" then | |
set the_string to "*" & "♫ " & the_string & " (" & album of current track & ")" & "*" | |
else if year of current track is not 0 then | |
set the_string to the_string & " (" & ")" | |
else if album of current track is not "" then | |
set the_string to "*" & "♫ " & the_string & " (" & album of current track & ")" & "*" | |
end if | |
else | |
set the_string to "Not Playing" | |
end if | |
end tell | |
return the_string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ex: ♫ "Outside My Door (2004 Digital Remaster)" - Can (Monster Movie)