Keep Safari from hijacking the media buttons from controlling iTunes

Solution 1:

This was driving me crazy, so I wrote a little menu bar app to make the media keys only affect iTunes:

http://stuntsoftware.com/reflex/