1

Using terminal, I want to disable the feature of iTunes that causes it to run whenever a device is plugged in, but I want to do this entirely from the terminal, so that it can be part of an OSX setup script.

7
  • Woops! I accidentally clicked the button. This did not solve my problem! – Joseph Lennox Apr 2 '15 at 18:51
  • which answer didn't solve your problem. The accepted one will prevent the initial setup dialog, mine will kill iTunes from auto-launching permanently; however, that app is inside the iTunes app itself, so you'll need to dig for it - /Applications/iTunes.app/Contents/MacOS/iTunesHelper.app I'm no Terminal guru so idk how you would disable it from in there – Tetsujin Apr 3 '15 at 7:28
  • sudo rm -r /Applications/iTunes.app/Contents/MacOS/iTunesHelper.app worked, but I had to reboot after. Thanks @Tetsujin! – Joseph Lennox Apr 3 '15 at 18:08
  • Welcome - I'm actually voting to reopen this as the Terminal requirement separates it from the linked question. – Tetsujin Apr 3 '15 at 18:12
  • @Tetsujin If you want to respond with the answer, I'll accept it. There's likely a way to unload a plist with launchd, too. – Joseph Lennox Apr 3 '15 at 19:24
4

You should be able to run this command in terminal, then restart iTunes:

defaults write com.apple.iTunesHelper ignore-devices 1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .