Created
February 13, 2014 13:12
-
-
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.
This file contains 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
#!/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