Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.
didn't work for me in 10.6.4 I adjusted it, basically adjust the target for the click: tell button "Detect Displays" of window 1 to click here's the whole thing. this one also quits system prefs at the end, and I took out the delays. I didn't seem to need them. tell application "System Preferences" to activate tell application "System Events" tell process "System Preferences" click menu item "Displays" of menu "View" of menu bar 1 tell button "Detect Displays" of window 1 to click end tell end tell tell application "System Preferences" to quit P.S. thanks to the OP for rapidly leading me to a solution.