4

I'm trying to prevent the iTunes app opening every time I press the Play/Pause key on my Mac's keyboard.

If I'm using Spotify or another music app, that key should control the active audio being played.

I've installed a lot of apps but none are working.

1
  1. From the Apple menu, choose “Restart…” > “Restart“.
  2. Simultaneously press and hold the “Command” and “R” buttons. (This will start you in Recovery Mode)
  3. Type the following to disable the System Integrity Protection and press enter:

csrutil disable

  1. Then restart and let the login proceed as normal. Once you’re in, run the following command to disable the f#?! iTunes. This will prevent you opening iTunes

sudo chmod -x /Applications/iTunes.app/Contents/MacOS/iTunes

  1. Reenable the System Integrity Protection to the previous status (enabled):

csrutil enable

To disable the 3 music keys is this command:

launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist

Bye bye iTunes :)

| improve this answer | |
  • Note that the launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist command must be performed without the System Integrity Protection enabled – Rodrirokr Apr 30 '19 at 20:38
  • 1
    Re last step: Doesn't this just disable those buttons? What if we still want to use them with other apps – darkace Apr 20 at 14:10
  • Yes, OP made it clear that they want to use the keys with other apps, so this is not a valid answer. – drkvogel Sep 11 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.