Screen brightness
Screen brightness
- Subject: Screen brightness
- From: Axel Luttgens <email@hidden>
- Date: Tue, 25 May 2004 17:07:02 +0200
Does somebody know about a (shell) command allowing to adjust the screen
brightness?
Up to now, the only way I have is the obvious one, through UI scripting. [1]
But this is of course not the most convenient, unobstrusive way.
TIA
Axel
[1] For those who might be interested, here follows a skeleton:
-- The wanted brightness: a real between 0 and 1
set V to 0.5
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events"
tell process "System Preferences"
tell slider 1 of group 2 of tab group 1 of window 1
set value to V
end tell
end tell
end tell
tell application "System Preferences" to quit
_______________________________________________
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.