UI Scripting Displays Pane
UI Scripting Displays Pane
- Subject: UI Scripting Displays Pane
- From: Marconi <email@hidden>
- Date: Fri, 5 Sep 2003 18:04:44 -0700
I can't figure this out. Once the below script opens the Displays
Pref Pane, it becomes inactive. The System Preferences app is still
foremost but neither display window is active. It's as though there's
another, invisible, window active in System Preferences.
Without the window active, none of the 'click' commands work.
tell application "System Preferences" to activate
tell application "System Events"
tell application process "System Preferences"
click menu item "Displays" of menu "View" of menu bar 1
click radio button "Display" of tab group 1 of window "Apple
Cinema Display"
click button "Detect Displays" of group 1 of tab group 1 of
window "Apple Cinema Display"
end tell
end tell
--
"A man who believes in nothing will fall for anything." -- Malcolm X
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.