I'm trying to figure out a way to disable iTunes from launching when pressing the F8 play/pause button. We have hundreds of computers in our school district doing Smarter Balanced testing. The students are figuring out that pressing F8 will launch iTunes and crash the test. I'm looking for a way to get a working script to use with Casper Remote and to set up policies with.
This command works one-to-one:
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
So I tried to make it into:
#!/bin/bash
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
But this does not prevent iTunes from launching with F8 when pushing out as a script through Casper Remote. I have also tried to just execute as a command (without #!/bin/bash) with Casper Remote with no luck.
For a temporary solution I have removed iTunes from the machines before we reimage this summer with this script:
#!/bin/bash
rm -rf /Applications/iTunes.app/
We would prefer to not completely remove iTunes from the machines, we just want to disable the keyboard shortcut. We are aware you can set the keyboard preference to force the Fn key to be pressed to use the special features for the F keys. Again, this is not feasible as the students will figure that out as well.
Any suggestions on a workable script or a package that runs the script to disable launching iTunes with F8 that can be pushed out with Remote and policies?
Thanks!