21

Finally upgraded my MacBook Pro (Unibody late 2008) from leopard to snow leopard, with a view to go to Lion when it finishes downloading. I've now noticed that hitting the single button on my Etymotic HF-2's no longer play/pauses the media in the active player but launches iTunes if it's not running, and play/pauses iTunes content if iTunes is running. Historically on Leopard, pressing this button would cause the active player to play/pause, be it Spotify, VLC or any other media player (Though spotify and VLC are my most used players)

Anyone know how to return to this behavior?

3 Answers3

6

You can do this with ControllerMate:

enter image description here

And a little little AppleScript (each line for each function):

tell application "Spotify" to playpause
tell application "Spotify" to next track
tell application "Spotify" to previous track

If you open QuickTime Player it will silently ignore the play/pause button and prevent iTunes from being opened, if you don't iTunes will still try to play something. Another solution to prevent iTunes from starting is to disable the 'Remote Control Daemon', how to do this is explained in detail on superuser.

Luke
  • 161
  • 1
    Took a minute to figure out the setup, but ControllerMate works perfect, Thanks! Running Mac OSX 10.8.3 There is one lingering issue though. The initial play/pause click on the headphone will still open iTunes. Thereafter, controls continue to work with spotify. Is there a way to disable this with ControllerMate? – jpann Mar 29 '13 at 05:01
  • Unfortunately not. You have to keep QuickTime open. – Luke Mar 29 '13 at 15:44
  • http://superuser.com/questions/554489/how-can-i-remap-a-play-button-keypress-from-a-bluetooth-headset-on-os-x – Brad Hekman Jun 10 '13 at 17:20
  • @Luke, how exactly did you set up the configurations in ControllerMate? –  Sep 17 '15 at 22:00
  • 1
    @Courtney it's been a while since I've done this. ControllerMate is pretty much drag and drop. You need to locate the "Apple Mikey HID Driver" in the input dialog and select the right button. While the input device dialog is open pressing buttons will highlight the right device. You want to attach a script to each and use the individual lines above in each of them. What you have should look just like the screenshot - although I forgot to label the two bottom scripts in the picture. – Luke Sep 17 '15 at 22:38
  • to accommodate vlc too, I made a separate page (only keep one active at a time) and used the same commands but subbed VLC for application, and commands are play, next, previous (no pause/track needed) – pennstatephil Oct 15 '15 at 21:41
  • As Luke said use controller mate but instead of using apple script use keystrokes. For example, one click is F8 for pause and play, two clicks are F9 for skip song, three clicks is F7 for go back a song. This way it works for all apps – a tech guy Mar 13 '18 at 16:15
4

You have to combine both answers posted here.

Configure ControllerMate as described by Luke for your program of choice and apply the Play Button iTunes Patch mentioned by Stephen.

Then you can control your app of choice by using a headphone remote control without starting iTunes.

Ichixgo
  • 709
  • 6
  • 12
1

I believe this will fix your problem MMFix. Let me know if it works!

Stephen
  • 1,381
  • 5
  • 15
  • 30