Stop Photos.app from opening when any device is connected
Simplest might be to use RCDefaultApp - old but still works on Yosemite &amp; is free.

It installs as a Control Panel, called Default Apps.

Set Media > Camera to 'Ignore'



I actually set everything to Ignore, I prefer to do these things manually.