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 8, 2009 7:09 PM in response to stephenpsmith

My temporary hack to stop it until Apple gives us a choice to disable this PITA feature.

Paste this into Apple Script Editor, compile it make sure there are no errors and save it as an App. When launched it simply asks you to enable or disable iTunes from launching by changing the execute permission. It stops iTunes from launching and the only thing you get when the play/pause button is pressed is a dock bounce and a console error.

display dialog "Do you want to enable or disable iTunes?" buttons {"Enable", "Disable"} default button 1
if button returned of result is "Disable" then
do shell script "chmod -x /Applications/iTunes.app" with administrator privileges
else
do shell script "chmod +x /Applications/iTunes.app" with administrator privileges
end if

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.

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.