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

JonHimself

macrumors 68000
Original poster
I've been successfully using an older (2009) Mac mini running monitorless as an iTunes server of sorts. I use my iPad or wife's Macbook to VNC to it whenever I need to do something. I'll soon by replacing it with a new Mac mini and have been thinking about using Airplay Mirroring to our AppleTV (along with bluetooth keyboard/trackpad) to have the option to control it on the TV.
My question is about finding a way to start the Airplay Mirroring through a script (or something equivalent) so that I could avoid having to VNC to the Mac mini from my iPhone/iPad, click the Airplay button in the menu bar and then select the Apple TV. Ideally I could assign a keyboard shortcut to start a script which would do that for me and then it would just show up on the Apple TV.
I have a basic understanding of AppleScript and have used Automator to some extent but am wondering if someone knows of a solution that wouldn't involve writing something to emulate a series of mouse clicks?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.