You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to stop iTunes from launching when using Keyboard media keys

Hi,

I love the media keys on my MacBook and Apple wireless keyboard for playing, pausing, changing tracks etc with iTunes, but there are other than can utilize the media keys, like Spotify for instance. However, if I have iTunes closed, when I hit the Play key, iTunes will automatically launch, and will intercept any subsequent presses of just the play/pause button. Is there a way to stop this annoying behavior? I haven't found anything in the Keyboard shortcut system pref.

thanks.

black MacBook (Santa Rosa), 2.2Ghz Intel Core 2 Duo, 160GB HD, 4GB RAM, Mac OS X (10.5.8), 16GB iPod Touch, 2G 1GB iPod Shuffle, 4G 20GB iPod

Posted on Aug 20, 2009 5:51 PM

Reply
310 replies

Nov 5, 2010 10:15 AM in response to William Brawley

The culprit here is the Remote Control Daemon, it lives in

/System/Library/CoreServices/rcd.app

To simply disable it, open a terminal window and type

sudo chmod a-x /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd
killall -9 rcd

To re-enable it,

sudo chmod a+x /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd

Then log out and back in. (I couldn't get iTunes to respond again without logging out and back in)


you will now be able to use your media keys with any app you want. You won't be able to use them with iTunes, however. (odd, huh?) The problem appears, to me, to be that rcd uses AppleScript to communicate with the various Apple apps it controls (Quicktime Player, Quicktime PlayerX, DVDPlayer, Aperture, iPhoto, iTunes, and Keynote) ( warning technical stuff to follow) If you view the strings contained in the executable you can see it explicitly launching iTunes

strings /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd

You will find the following, if you look for it,

tell application id "com.apple.iTunes" to launch

which is not present in the 10.5 version of rcd.app (yes, I checked)

Just for giggles and grins I opened the executable (/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd) in a hex editor and munged the launch command above. I logged out, then logged back in. I can now use my media keys without autolaunching iTunes AND I can still use them with iTunes when it is open.

In summary, someone at Apple deliberately altered the Remote Control Daemon to launch iTunes when using the play/pause button. It would be trivially easy for them to fix, either by disabling it or making it a configurable option.

Nov 15, 2010 2:49 AM in response to William Brawley

Hi guys,

This workaround might already be discussed here earlier, but here it is as a reminder for new thread readers:

Just open QuickTime without opening any files with it. This prevents the media keys from launching iTunes automatically and they still work with the active app like the Spotify.

I liked the simplicity of this workaround, although its not the real thing.

Since I consider Apple responsible for this stupidity with the remote control daemon, I sent my feedback to them. I think everyone should do it to increase the number of complaints: http://www.apple.com/feedback/macosx.html

Br,

AnttiN

Nov 23, 2010 12:04 PM in response to William Brawley

I just finished publishing a patch that prevents iTunes from starting when you press the play button on the keyboard. Check it out at the following URL.

http://www.thebitguru.com/blog/view/357-New%20Patch:%20Play%20Button%20iTunes%20 Patch

I only have one Mac so I haven't been able to test it out on multiple computers, but this should work on systems running 10.6.5.

How to stop iTunes from launching when using Keyboard media keys

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.