Need Shortcut for iMac to start Airplay...

Discussion in 'Apple TV and Home Theater' started by Todisco, Sep 4, 2012.

  1. Todisco macrumors newbie

    Todisco

    Joined:
    Sep 1, 2011
    Location:
    Atlanta, GA
    #1
    Here is my situation - I have an iMac sitting in a room upstairs and my AppleTV is downstairs. It is more than mildly inconvenient to run upstairs, turn on Mirroring so I can watch Hulu or ESPN on the big screen downstairs (plays beautifully by the way).

    I tried with my iPad to use Splashtop to remotely access the iMac and turn on Airplay - the problem is once I exit out of Splashtop on the iPad, Airplay disconnects.

    The only solution I can think of is use a program like MobileMouse and use a keyboard shortcut to direct AirPlay to play on the AppleTV.

    My question is how would I go about setting up a keyboard shortcut like this or does anyone have any other solutions?

    :confused:

    Thanks!
     
  2. GimmeSlack12 macrumors 603

    GimmeSlack12

    Joined:
    Apr 29, 2005
    Location:
    San Francisco
    #2
    You could probably use Applescript and EventScripts app to do it.
    Or you could just use a terminal command alias to run an Applescript on your iPhone/iPad.
    Or possibly automator?
    Or get a real VNC app (Remoter VNC is great) instead of Splashtop.
    If anything you can go to the Keyboard preferences and setup a key command, but that's not the most elegant solution.

    Just some thoughts.

    EDIT: Here's the Applescript code I found, have not tried this

    Code:
     tell application "System Preferences"
    set current pane to pane "com.apple.preference.displays"
    activate
    end tell
    
    tell application "System Events"
    tell process "System Preferences"
    click pop up button 1 of window 1
    click menu item 2 of menu 1 of pop up button 1 of window 1
    end tell
    end tell
    
    tell application "System Preferences"
    quit
    end tell
     

Share This Page