Apple - How can I prevent iPhoto from opening everytime I plug my iPad/iPhone?

Do this:

  1. Plug in your iPad/iPhone
  2. Open Image Capture
  3. Select your device ("devMikePad")
  4. Press the triangle in square symbol in the lower left corner.
  5. Select "No application" in the menu.

Here is a picture showing what to look for on Snow Leopard or Yosemite.

enter image description here


The way disable this in bulk using terminal or a script:

defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES

This sets a flag to tell the system to not activate ImageCapture or Photos or iPhoto when a hot plug of an iOS device is detected. The benefit here is you pre-emotively disable the connection as opposed to reacting to each single device after an app has launched and the specific device is connected.


iPhoto:
Preferences > General > "Connecting Camera Opens ..."
set it to "No Application"

added: How to do this with the new Photos app
Connect the iPad/iPhone
Photos:
Import
check or uncheck "Open Photos for this device"