Last active
October 7, 2015 04:28
-
-
Save cbuck/3106265 to your computer and use it in GitHub Desktop.
Get current artist from Rdio app
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
on ApplicationIsRunning(appName) | |
tell application "System Events" to set appNameIsRunning to (name of processes) contains "Rdio" | |
return appNameIsRunning | |
end ApplicationIsRunning | |
on np() | |
if ApplicationIsRunning("Rdio") then | |
tell application "Rdio" | |
set artist_name to get artist of current track | |
end tell | |
return artist_name | |
end if | |
set status to "" | |
return status | |
end np | |
np() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment