Applescript to turn Airplay Mirroring on
Hi all,
I am having a little trouble with this applescript which is intended to turn Airplay Mirroring onto my Apple TV. Any help would be greatly appreciated as I'm really new to applescript.
tell application "System Preferences" to activate
tell application "System Events" to tell process "System Preferences"
tell menu 1 of window 1
set value of airplaymirroring to "Apple TV"
end tell
end tell
quit application "System Preferences"
iMac (27-inch, Late 2012), OS X Mountain Lion (10.8.4)