Skip to content

Instantly share code, notes, and snippets.

@obihann
Created February 13, 2014 13:12
Show Gist options
  • Save obihann/8974812 to your computer and use it in GitHub Desktop.
Save obihann/8974812 to your computer and use it in GitHub Desktop.
An AppleScript to pull the current song and artist from the Rdio application.
#!/usr/bin/osascript
tell application "Rdio"
set playerStatus to (get player state)
return (playerStatus) as text
end tell
tell application "Rdio"
if player state is playing then
set trackName to (get name of current track)
set artistName to (get artist of current track)
return ("Now Playing On Rdio: " & artistName & " - " & trackName) as text
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment