[CUBE] AppleScript to Control Brightness of Apple LCD Monitor?

Gnarlodious gnarlodious at mac.com
Sun Jan 11 05:52:34 PST 2004


Entity J. Torrey spoke thus:

> AppleScript to control the brightness
> of your Apple LCD monitor?


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 "Apple
Studio Display" of process "System Preferences" to 0
    end tell
end tell

When pasting this script in the Script Editor be sure to unwrap the long
line.

-- Gnarlie
http://www.Gnarlodious.com/Workshop/AppleScript/AppleScript.html




More information about the Cube mailing list