Re: brightness slider
Re: brightness slider
- Subject: Re: brightness slider
- From: Martin Orpen <email@hidden>
- Date: Tue, 05 Oct 2004 08:48:14 +0100
Title: Re: brightness slider
set bValue to 0.8
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events"
if (system attribute "sysv") ≥ 4144 then
if UI elements enabled then
tell process "System Preferences"
tell slider 1 of group 2 of tab group 1 of window 1 to set value to bValue
end tell
else
beep
display dialog "GUI Scripting is not enabled" & return & return & "Open System Preferences and check \"Enable access for assistive devices\" in the Universal Access preference pane, then run this script again." with icon stop
if button returned of result is "OK" then
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.universalaccess"
end tell
end if
end if
else
beep
display dialog "This computer can't run this script" & return & return & "The script uses Apple's GUI Scripting technology, which requires an upgrade to Mac OS X 10.3 \"Panther\" or newer." with icon caution buttons {"Quit"} default button "Quit"
end if
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Colorsync-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden