When plugging in iPhone, iTunes and iPhoto open on my Mac So, I've seen this question and tried to follow it... but it happens regardless. And to top it all off, iTunes gives me a grave warning now everytime I plugin my phone "if you do not authorize this computer, 22 apps, including “AccuWeather”, and their data will be deleted from this iPhone."

My Mac is using a different apple ID than my phone because my Mac is my work machine, but my phone is personal. I think this has something to do with it. I need to plugin my iPhone to my Mac to use for development (ie, testing apps and such) but I don't need to manage anything else through it. 

How can I get the constant barrage of apps and now warnings/potential of lose of data from popping up each time I plug my iPhone into my Mac? 

My Mac is using Yosemite and my iPhone iOS 8.3.. Everything is up to date
You can also write a little script that prevents iPhoto from lunching automatically.

Just to make sure I got your question: you want to disable auto lunch for iTunes and Photos app + Disable auto sync in iTunes. Am I right?