Help with Brightness Applescript!
I recently found/edited a applescript which allows you to change your brightness to a set value. Here it is:
ChangeBrightness(0.25) --Set this value between 0 and 1 to adjust brightness
on ChangeBrightness(BrightnessValue)
tell application "System Preferences"
--activate
set current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events" to tell process "System Preferences"
tell radio button "Display" of tab group 1 of window 1 to if value is 0 then
repeat until value is 1
click
end repeat
end if
tell slider 1 of group 1 of tab group 1 of window 1 to set value to BrightnessValue
end tell
tell application "System Preferences" to quit
end ChangeBrightness
Now this is awesome, but I want the applescript to set my brightness to ex. (0.5) if I run the applescript and my brightness is (0.25) or lower. D
MacBook Pro (13-inch Early 2011), OS X Mountain Lion (10.8.3)