Oct 28, 2014 - Here's how to use your Mac's keyboard to easily play or pause and control the media playback on Spotify, Pandora, YouTube and many more. I have been searching for a way to use the media keys to control Spotify for a while and most ways either don't work or break iTunes. However, this.
I use Spotify all the time and find it highly annoying when the play button on my keyboard opens iTunes instead of controlling Spotify. This happens with other media buttons too once iTunes is open. I don’t use iTunes at all so I found a solution to prevent this nonsense from happening. Follow the steps below if you want to do the same. The first step is to diable Apple’s SIP. Once you apply the command to disable execution of iTunes you should perform the steps again to re-enable SIP.
From the Apple menu, choose “ Restart” “ Restart“. Simultaneously press and hold the “ Command” and “ R” buttons.
This will start you in Recovery Mode. Select “ Utilities” “ Terminal“. Type one of the following, then press “ Enter“:. Disable System Integrity Protection: csrutil disable. Enable System Integrity Protection: csrutil enable Then restart and let the login proceed as normal. Once you’re in, run the following command: sudo chmod -x /Applications/iTunes.app/Contents/MacOS/iTunes This will prevent iTunes from opening, so make sure that is what you really want.
If you still want to use iTunes for any purpose (for example iPhone and iPad backups) this method above won’t work for you, as it will prevent the backups from taking place. If you want to go back to default behavior, you can enter Terminal once again (make sure you disable SIP again before) and type in the following: sudo chmod +x /Applications/iTunes.app/Contents/MacOS/iTunes Alternative: Using an Application If you want to retain the ability to use iTunes for other purposes, and use Spotify for your media, I suggest installing the. Download the app and move it to your Applications folder.
![Spotify Spotify](/uploads/1/2/5/3/125387247/392105579.png)
Double-click to start it and you will see a black dot appear in your taskbar. Click on the dot and make sure that the option to start on session initialisation is ticked. Then change the option to give priority to Spotify over iTunes for your media keys. Enjoy your new found freedom from iTunes.