How can I transform which application is released when I push the play switch on my remote?

My mac mini featured a remote control. When I push the play switch, iTunes is released. Just how can I transform what takes place when I push this switch (e.g. release a various program )?

2019-05-07 11:44:55
Source Share
Answers: 2

Some device like Remote Buddy could aid below, yet it's possibly far more than you requested for.

2019-05-09 05:29:00

according to the author : This appears to collaborate with iTunes 8 and also 9, although you'll require to remodel the spot after updating.

Open a Terminal and also type the adhering to

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 also you can find out more here and also here.

2019-05-09 04:42:51