Play Button iTunes patch
Recent macOS Support & End of Life
Please note that this patch does not work on macOS High Sierra and later versions. Based on my research it seems that macOS now has good support to address the issue that this project was initially intended for so most of the modern media players now are able to support media keys natively. Given this, and my low availability lately, I am considering archiving this project. Please see this issue for the current status. I am open to accepting pull requests and new maintainers.
This is a patch for removing the default OS X behavior of always starting iTunes when the play button on the keyboard is pressed. This feature can be useful for a lot of users, but it can also be annoying if you are using VLC, Nightingale or other similar programs that support the media keys.
The application will patch the Remote Control Daemon to prevent it from starting iTunes whenever you press the play button on the keyboard or an external remote control. This will only prevent iTunes from starting, all other functions (like play/pause while iTunes is running) will continue to work as before. The original file is backed up in case you would like to restore the original functionality.
OS X El Capitan Compatibility
This patch works by modifying a system file (rcd). With the new System Integrity Protection (SIP) functionality introduced in El Capitan you have to take additional steps to temporarily disable SIP. Hopefully I will get some time soon to update the binary to guide the user through this, but for now please follow the instructions documented on the project page.
Author: Farhan Ahmad (http://www.thebitguru.com/projects/iTunesPatch)