Setting the display brightness with GUI scripting
Setting the display brightness with GUI scripting
- Subject: Setting the display brightness with GUI scripting
- From: Rafael Santana <email@hidden>
- Date: Thu, 3 Apr 2003 20:46:54 -0400
Because the readability of my flat panel iMac suffers a lot from
variations on the ambience light along the day, I could use a script
that automatically adjust the display brightness before or after sunset.
After much wrestling with GUI references in the Brightness control
panel, I could just 'increment' or 'decrement' in 0.1 steps the
position of the slider in this fashion:
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
repeat 10 times
increment slider 1 of group 2 of tab group 1 of window "iMac"
end repeat
end tell
tell application "System Preferences" to quit
end tell
But what I really need is a way to 'set' the position of this slider,
say to 0.5
Can somebody please hep?
_______________________________________________
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.