Last active
August 29, 2015 14:02
-
-
Save traviskroberts/6a19800856ef74e17027 to your computer and use it in GitHub Desktop.
Rdio Apple Scripts for media keys
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
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 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
This is really handy. I forked it for Spotify. Do you run this on launch, I assume?