How can I use the media keys (previous track, play/pause, next track) for Spotify instead of iTunes? OS X 10.9.4
If you use the Spotify desktop app, the media keys on OS X work by default (sometimes iTunes randomly "retains" the keys: just reboot). For the best results, don't keep iTunes and Spotify open at the same time.
If you use the Spotify Web Player, you can enable the media keys using BeardedSpice, a free application which enables you to control web-based media players using you keyboard media keys. It also works for YouTube, for example.
If nothing helps to make Spotify take over the keys, check if you have Google Music installed in Chrome apps, because it always takes over these keys. Removing the Chrome app immediately makes media keys to work in Spotify.
I've found this helper application : Magic Keys ; Graciously written in a generic way by the creator of the Gear music player.
iTunes still sometimes pops us when using a Bluetooth control however, but it's minimal and non-intrusive and works well otherwise.
You can go into System Preference - Users&Groups - Login Items, then disable iTune and Spotify at startup, restart, then start Spotify which triggers Spotify helper to take priority control of the media keys ... Good luck !!!
You can download Bowtie. Although the developers have stopped developing this app, you can still use it to control Spotify, Rdio, and iTunes with media keys.
The keys didn't work for me on OSX10.10, while they normally do. I launched and quit iTunes. After that, Spotify responded to the media keys again. Even play/pause without launching iTunes. This may be because I tweaked OS X to stop launching iTunes when pressing play/pause (I can't remember for sure.)
Pressing play/pause on a headset does still launch iTunes.
My solution to the Spotify problem was to go to keyboard shortcuts in account preferences, and assign the > and < keys to perform the "Seek Forward" and "Seek Backward" functions. My media keys have always worked to start and pause playback, and skip or go back a track, but they would not perform the seek function.
There is a small, free and OS tool called MacOS High Sierra Media Key Enabler for iTunes and Spotify.
It proxies media key events to iTunes or Spotify. You can prioritize which app you would like to control or you can go with the default behaviour which controls the running app. The app runs in the menu bar in the form of a subtle and beautiful black dot.
This workaround is needed as Apple in High Sierra changed the behaviour of the media controller keys: they no longer control iTunes, they control the video playback in Safari.
If iTunes is not running, the media keys will work. I just tried it and it works on my Mac.
I've found that having Chrome open prevents the key from working. Closing Chrome makes the keys work again.
I've found a really nice chrome addon: It gives me notifications and uses my mac media keys to control the Spotify web player.
Everything I wanted + it's well maintained by the dev and open source hosted on github.
My main reason atm for using the webplayer is not having any ads.
Blocked them with ublock and these filters:
There is a nice little app called "Spotify Menubar" - you can set keyboard shortcuts via it's preferences. Works perfectly for me with Mojave.
Just go to Users & Groups > Login Items > Delete iTunes Helper from the list.
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.