Created
October 8, 2010 01:25
-
-
Save pix0r/616211 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Preferences" | |
activate | |
set current pane to pane "com.apple.preference.displays" | |
end tell | |
tell application "System Events" to tell window 1 of process "System Preferences" | |
try | |
tell tab group 1 to click radio button "Arrangement" | |
on error | |
return "Only one display available." | |
end try | |
tell group 1 of tab group 1 | |
click checkbox "Mirror Displays" | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment