Skip to content

Instantly share code, notes, and snippets.

@traviskroberts
Last active August 29, 2015 14:02
Show Gist options
  • Save traviskroberts/6a19800856ef74e17027 to your computer and use it in GitHub Desktop.
Save traviskroberts/6a19800856ef74e17027 to your computer and use it in GitHub Desktop.
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
@traviskroberts
Copy link
Author

@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