Disable iTunes using a script ?
There's a much despised bug in OS X wherein iTunes unexpectedly opens and in some cases, starts playing music, a podcast, or whatever the user was listening to last. see Turning off Bluetooth speaker, triggers iTunes App to open The bug can be triggered in a number of different ways but it's not the bug itself that I'm asking about today; It's an implementation of the recommended solution.
It turns out that the only way to eliminate the bug is to completely disable iTunes. The well-documented steps for doing so are:
Go to Applications folder >> highlight iTunes app shortcut >> select 'Show Package Contents' from context menu >> Contents >> Mac OS; from within this directory, rename 'iTunes' to 'iTunes-disabled' and rename 'iTunesHelper' to 'iTunesHelper-disabled'
The solution works perfectly. It's a shame to disable iTunes completely but getting some relief from iTunes randomly starting up and interfering with my workflow far outweighs any benefit that iTunes provides so I just leave it disabled and use other options for audio/video playback.
The thing is though, these days I occasionally need iTunes to stream downloaded TV shows to my AppleTV box. And each time I do, I have to undo the steps described above in order to reenable iTunes. Which leads me to my question:
Is there some way to automate the process of disabling/enabling iTunes using the method described? Like maybe some sort of script or something? Ideally, I'd have a couple of shortcuts on my desktop which when double-clicked, would disable or enable the product by renaming the relevant files. Any ideas?
iMac, Mac OS X (10.7)