• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pref. pane (need more help)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Word wordcounts
  • Next by Date: Re: Fetch
  • Previous by thread: Re: Pref. pane (solved)
  • Next by thread: Re: Pref. pane (need more help)
  • Index(es):
    • Date
    • Thread