Any ideas on adjusting monitor brightness via AppleScript?
Any ideas on adjusting monitor brightness via AppleScript?
- Subject: Any ideas on adjusting monitor brightness via AppleScript?
- From: Henrik Boes <email@hidden>
- Date: Wed, 7 Jan 2004 10:37:46 -0700
One way (perhaps not the most elegant) would be to use GUI scripting
(requires OS X 10.3.x):
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.displays"
tell application "System Events"
set value of slider 1 of group 2 of tab group 1 of window "Color LCD"
of process "System Preferences" to 0.8
end tell
end tell
Obviously, the name of the window and the value of the slider will be
different in your case.
HTH.
Henrik Boes
_______________________________________________
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.