Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My mac mini came with a remote control. When I press the play button, iTunes is launched. How can I change what happens when I press this button (e.g. launch a different program)?

share|improve this question
It's probably related to a LaunchAgent. Maybe I can find which. – zneak Aug 25 '10 at 6:39
The MENU button of the remote is controlled by, but I can't find the one controlling the Play button. – zneak Aug 26 '10 at 3:26
@zneak: would rebinding the menu button also wake up the computer from sleep mode like the play button does? – Senseful Sep 1 '10 at 21:14
I really don't know. :/ – zneak Sep 1 '10 at 22:17
up vote 1 down vote accepted

Some tool like Remote Buddy might help here, but it's probably much more than you asked for.

share|improve this answer

according to the writer : This seems to work with iTunes 8 and 9, although you'll need to redo the patch after upgrading.

Open a Terminal and type the following

cd /Applications/
sudo mv iTunes iTunesX
sudo curl -O
sudo chmod uog+x iTunes enter code here


#!/usr/bin/env python

import sys, os, subprocess

launch = True
blocker = ""

apps = ["Spotify", "Songbird"]

ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)

for line in"\n"):
    for app in apps:
        if app in line:
            launch = False
            blocker = app


if launch :
    os.spawnvp(os.P_WAIT, '/Applications/', sys.argv)
else :
    print "Not launching iTunes while %s is running." % blocker

and you can read more here and here.

share|improve this answer
That's a pretty dirty hack. – zneak Aug 25 '10 at 6:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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