Re: UI Scripting Displays Pane
Re: UI Scripting Displays Pane
- Subject: Re: UI Scripting Displays Pane
- From: Jean-Baptiste LE STANG <email@hidden>
- Date: Sat, 6 Sep 2003 10:01:54 +0200
The following will work to :
tell application "System Preferences" to set current pane to pane 19
tell application "System Preferences" to set current pane to pane
"com.apple.preference.displays"
@+ JB
Le samedi, 6 sep 2003, ` 09:44 Europe/Paris, John Delacour a icrit :
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.
_______________________________________________
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.