Greetings,
I'm using the scripts below to control the brightness level of the control
monitor for a 2 monitor rig. 1 - control / 1 - video
The script functions as desired but it also opens up the system preference
window for displays but then leaves it open.
I would assume the window HAS to be opened to make the adjustment but so
far I can't figure out how to have the "pane" close before the script is
closed.
I'm assuming that this line,
tell application "System Preferences" to reveal anchor
"displaysDisplayTab" of pane "com.apple.preference.displays"
should be easily "unrevealed" but so far nothing I try works & I can't
find the opposite command yet.
---------------------------------------------------------------------------
to turn the brightness of the screen down to 0 / off:
tell application "System Events"
tell application "System Preferences" to reveal anchor
"displaysDisplayTab" of pane "com.apple.preference.displays"
tell process "System Preferences"
set value of slider 1 of group 2 of tab group 1 of window 1 to 0
end tell
end tell
to turn the brightness of the screen up to full:
tell application "System Events"
tell application "System Preferences" to reveal anchor
"displaysDisplayTab" of pane "com.apple.preference.displays"
tell process "System Preferences"
set value of slider 1 of group 2 of tab group 1 of window 1 to 1
end tell
end tell
NOTE - the only difference between the two scripts is the last number
which is either 0 or 1. You can also specify a number between 0 & 1. For
example, .5 = 1/2 brightness & so on.
If you use these, make sure you disable "Automatically adjust brightness
as ambient light changes or else your mid bright levels well be
overridden.
I would guess although I don't have a second monitor that if there is more
than 1 monitor, the same scripts could be modified to control those as
well but maybe not. Maybe this is only useful for an on board mac screen
such as those found on Imac & Macbook products.
FYI- these script worked fine via the applescript editor but not in Qlab
until I followed the instructions here:
http://figure53.com/wiki/index.php?title=QLab_Scripts_and_Macros#Usin...
Best Regards,
*
________________________________________________________
WHEN REPLYING, PLEASE QUOTE ONLY WHAT YOU NEED. Thanks!
Change your preferences or unsubscribe here:
http://lists.figure53.com/listinfo.cgi/qlab-figure53.com