Skip to content

Instantly share code, notes, and snippets.

@kristianfreeman
Created January 26, 2013 19:32
Show Gist options
  • Save kristianfreeman/4644021 to your computer and use it in GitHub Desktop.
Save kristianfreeman/4644021 to your computer and use it in GitHub Desktop.
Rdio now playing - nice in TextExpander
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
@kristianfreeman
Copy link
Author

ex: ♫ "Outside My Door (2004 Digital Remaster)" - Can (Monster Movie)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment