Re: Backlight using GUI scripting doesn't work...
Re: Backlight using GUI scripting doesn't work...
- Subject: Re: Backlight using GUI scripting doesn't work...
- From: kai <email@hidden>
- Date: Sun, 8 Oct 2006 00:40:50 +0100
On 7 Oct 2006, at 22:58, Peter Baxter wrote:
This does not work either could you explain more fully what to do
about the error?
tell application "System Preferences"
activate
set current pane to pane id "com.apple.preference.displays"
end tell
tell application "System Events"
tell application process "System Preferences"
tell tab group 1 of window 1
click radio button "Display"
tell group 1
tell slider 1
repeat
(*increment!?*)
end repeat
end tell
end tell
end tell
end tell
end tell
You first need to identify the target UI element correctly, Peter.
(There are 2 groups in the tab group, the last of which is the
relevant one.) Then just use the correct syntax to perform an
increment action - something like this:
----------------
tell application "System Preferences" to reveal anchor ¬
"displaysDisplayTab" of pane id "com.apple.preference.displays"
tell application "System Events" to tell slider 1 of ¬
group -1 of tab group 1 of window 1 of ¬
process "System Preferences" to repeat until value is 1
perform action "AXIncrement"
end repeat
----------------
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden