Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rdio Apple Scripts for media keys
if application "Rdio" is running then
tell application "Rdio" to playpause
else if application "iTunes" is running then
tell application "iTunes" to playpause
end if
if application "Rdio" is running then
tell application "Rdio" to next track
else if application "iTunes" is running then
tell application "iTunes" to next track
end if
if application "Rdio" is running then
tell application "Rdio" to previous track
else if application "iTunes" is running then
tell application "iTunes" to previous track
end if
@rianrainey

This comment has been minimized.

Copy link

@rianrainey rianrainey commented Sep 25, 2014

This is really handy. I forked it for Spotify. Do you run this on launch, I assume?

@traviskroberts

This comment has been minimized.

Copy link
Owner Author

@traviskroberts traviskroberts commented Nov 21, 2014

@rianrainey I have a mechanical keyboard and the media keys don't work with Mac OS X. I use USB Overdrive to map the media keys to the different AppleScript snippets.

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