Re: Pref. pane (need more help)
Re: Pref. pane (need more help)
- Subject: Re: Pref. pane (need more help)
- From: kai <email@hidden>
- Date: Sat, 26 Mar 2005 00:45:41 +0000
On Fri, 25 Mar 2005 20:46:09 +0100, Bernard Azancot wrote:
Thanks a lot Bob.
Unfortunately the problem is still there.
I do not have radio buttons but a slider...
The checkbox "Enable access for assistive devices" has been checked.
Any idea.
The radio buttons in question are actually tabs, Bernard. On an English
system, these are labelled "Display" and "Color". On your machine,
however, I suspect that the labels will differ. If this is the case,
there are a couple of ways around the problem. You could either amend
the statement in question, so that the label of the radio button (tab)
reflects the equivalent of "Display" on your system - or use the more
universal description: radio button 1.
In other words, Bob's script should work on an English system, but may
need modification with another language. Once the correct radio button
(tab) is selected, the script should then go on to modify the slider's
value.
Try this variation, which should move the slider gradually, to see if
it works for you:
------------
set r to 20 (* rate of brightness change *)
tell application "System Preferences" to set current pane to pane
"com.apple.preference.displays"
tell application "System Events" to tell process "System Preferences"
to tell tab group 1 of window 1
tell radio button 1 to repeat until value is 1
click
end repeat
tell slider 1 of group -1 to repeat with n from 0 to r
set value to n / r
end repeat
end tell
--tell application "System Preferences" to quit (* uncomment if
required *)
------------
---
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