Stop iPhoto or Aperture from opening when you plug in your iPhone

Open “Image Capture”

Open “Image Capture” preferences

Change “When Camera is Connected, open [no application]”