How can I transform which application is released when I push the play switch on my remote?
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/iTunes.app/Contents/MacOS sudo mv iTunes iTunesX sudo curl http://www.cs.umd.edu/~dmonner/iTunes -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 ps.stdout.read().split("\n"): for app in apps: if app in line: launch = False blocker = app ps.stdout.close() if launch : os.spawnvp(os.P_WAIT, '/Applications/iTunes.app/Contents/MacOS/iTunesX', sys.argv) else : print "Not launching iTunes while %s is running." % blocker
Am1rr3zA 2019-05-09 04:42:51Source Share