Re: Pref. pane (solved)
Re: Pref. pane (solved)
- Subject: Re: Pref. pane (solved)
- From: Bernard Azancot <email@hidden>
- Date: Sat, 26 Mar 2005 20:29:40 +0100
The following script is now perfect:
-- Script international version --
set bValue to 1.0
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events" to tell process "System Preferences"
tell radio button 1 of tab group 1 of window 1 to if value is 0 then
repeat until value is 1
click
end repeat
end if
tell slider 1 of group 2 of tab group 1 of window 1 to set value to
bValue
end tell
tell application "System Preferences" to quit
-- End of script --
For a french version change line:
tell radio button 1 of tab group 1 of window 1 to if value is 0 then
to
tell radio button "Moniteur" of tab group 1 of window 1 to if value is
0 then
For a full brightness >> set bValue to 1.0
For less brightness >> set bValue to 0.8
Many thanks to Bob, Martin, Axel and Kai.
Apologies for delayed answering, I could test this script before.
Regards
Bernard
_______________________________________________
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