Re: UI Scripting Displays Pane
Re: UI Scripting Displays Pane
- Subject: Re: UI Scripting Displays Pane
- From: John Delacour <email@hidden>
- Date: Sat, 6 Sep 2003 08:44:11 +0100
- Mac-eudora-version: 6.1a2
At 6:04 pm -0700 5/9/03, Marconi wrote:
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"
All that can be done more simply like this:
do shell script "open /system/library/preferencepanes/displays.prefpane"
JD
.
_______________________________________________
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.