Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hasgar

macrumors newbie
Original poster
Sep 5, 2014
6
0
Northern Colorado
Does anybody know if it's possible to write a script that'll force the system to switch audio and video output to another screen via HDMI automatically when the cord is plugged in?

My Pro does this automatically but my wife's Air (which is our primary source of entertainment) does not. Every time we plug it in we have to mess with the settings to get it to mirror properly on our TV. If we don't switch automatically the sound stays on the laptop (rather than the TV) and the picture mirrored on the TV is black and streaky, while fine on the Air itself.

This is pretty frustrating since it took some convincing to get my wife to convert away from Windows (which before it crapped out would switch outputs automatically). I called Apple about another issue and asked about this. The lady said she had no idea why some systems seem to switch automatically and some don't.

Are there any hardcore Mac coders out there that would know of a way I could write an Applescript or maybe create an App in Objective-C that would help me accomplish this? I have some programming experience but a) I don't even know if this is possible and b) I would need someone to provide the code or at least point me in the right direction.

At the very least, could someone tell me why some systems switch automatically and why some don't? There's a variable in there somewhere that I want to discover. Hopefully it's as simple as writing up a script that'll do this.

Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.