Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tell application "System Settings" to activate
- delay 0.5
- tell application "System Events"
- tell process "System Settings"
- click menu item "Displays" of menu "View" of menu bar 1
- try --don't even consider not using a try block!
- key down option
- delay 1.0
- click button "Detect Displays" of window 1
- delay 0.2
- key up option
- on error --logging out is the only other way to clear these
- key up option
- end try
- end tell
- end tell
Advertisement
Add Comment
Please, Sign In to add comment