Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Newsroom Update

Apple Music today announced the release of its 100 Best Albums of all time, a list crafted by Apple Music’s experts alongside industry professionals. Learn more >

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

Sep 10, 2009 6:03 AM in response to William Brawley

I got so sick of this that I made a fix. It's a fairly ugly workaround, but hopefully it'll tide me over until Apple realize that this "feature" has to go. It works by preventing iTunes from launching if Spotify is open. (You can't even launch it manually, unfortunately, but as soon as you quit Spotify you are fine again.)

This seems to work with iTunes 8 and 9, although you'll need to redo the patch after upgrading. Needless to say, if this wrecks your system I'm not to be held responsible.

Open a Terminal and type the following

cd /Applications/iTunes.app/Contents/MacOS
sudo mv iTunes iTunesX
sudo curl http://www.ast.cam.ac.uk/~app26/itunes/iTunes -O
sudo chmod uog+x iTunes

You'll have to type your password after the second step. Hope this helps some people.

Sep 10, 2009 8:29 AM in response to andrew pz

That's the slickest workaround yet, Andrew -- good one. That's what I'll use until Apple decides to give us a checkbox somewhere to fix this.

I've modified Andrew's script a bit, to allow for multiple applications to block iTunes. So if you have, say, both Spotify and Songbird on your system and you want iTunes to interfere with neither, then this is for you. To install my version, follow Andrew's directions and replace his link with mine: http://www.cs.umd.edu/~dmonner/iTunes

If you want to add or modify the applications that block iTunes, just edit new the "iTunes" file on the line that starts "apps = ", adding in the names of any apps who should prevent iTunes from running when they themselves are running.

Sep 10, 2009 3:20 PM in response to William Brawley

I have come up with another workaround for this pathetic attempt at whatever it is they are trying to do. It is much more simple than a script.

I created an empty track that lasts over an hour. I tagged it so that it shows up in the beginning of my library. At least now, when iTunes launches on me, or when it is open and I don't know it, I get an hour before I hear anything. I may just duplicate this file a dozen times so I have a few days before I have to deal with this PITA "feature"

I've uploaded the file to sendspace so you can grab it. It is a blank track, there is no need to worry about copyright infringement, I give you permission to trade this track freely and post the link wherever you wish.

http://www.sendspace.com/file/0ff4uy

If you can find a way to make sure this is at the top of the file by improving file name, please let me know.

Enjoy the silence!

Sep 10, 2009 7:31 PM in response to William Brawley

The issue extends to other remotes controlling your system. I have a Logitech Harmony One universal remote that is now opening itunes when I hit play/pause after the 10.6.0 update (the 10.6.1 update did not address the issue). Tried to updated the firmware of the remote with no lock I hit the forums.

With all the programs available that could use the apple remote (or other brands) why would apple decide to default them to open itunes? I can deal with a default to that but at lease give me the option to disable it.

Glad and disappointed to learn that I'm not the only one with this issue. I'll keep the itunes store open until a fix is made.

Sep 12, 2009 3:34 PM in response to Michael Pitogo

Michael Pitogo wrote:
iTunes chews up too much cpu when I try to use a Mac Mini to display EyeTV on a 1080p system. Its barely able to push the frame rate, at 720p not a problem but...kiss is good. Mira switches between boxee, eyetv, hulu and plex.


Then start QuickTime Player instead of iTunes (but don't open any movie); this will have the same effect.

Credits for the tip belong to this post on Super User: http://superuser.com/questions/31925/stop-play-pause-button-opening-itunes-in-sn ow-leopard/35296#35296

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 ID.