screen brightness and screensaver control

Is there a way with applescript (without using ui scripting) to control the screen brightness or toggle the screensaver?

many thanks

Hi,

I’m not sure if ScreenSaverEngine app is used in Panther, but the following example might work:

repeat 2 times
tell application “System Events”
set ss_on to (exists process “ScreenSaverEngine”)
end tell
if ss_on then
tell application “ScreenSaverEngine” to quit
else
tell application “ScreenSaverEngine” to activate
end if
do shell script “sleep 3”
end repeat

gl,

hey thanks.

What about controlling the screen brightness.? is that possible?