|Jul 1, 2009, 03:01 AM||#1|
Applescript to Adjust Monitor Brightness
I'm currently writing an applescript to use as an alarm clock (playing itunes at full blast, displaying my dashboard with the weather and news), but of course, to actually get to sleep I have had to turn the brightness of the monitor right down, which means that I have to manually turn it back up again.
The Script I am currently using is
tell application "System Preferences" activate set current pane to pane "com.apple.preference.displays" tell application "System Events" delay 5 set value of slider 1 of group 2 of tab group 1 of window "Color LCD" of process "System Preferences" to 0.5 delay 5 end tell quit end tell
any ideas what I am doing wrong?
13" MacBook Pro Retina iPhone 6 Apple Watch iPad Mini Retina Cinema Display
|Jan 27, 2012, 11:03 PM||#3|
"Color LCD" should work, as long as that is the correct name of your monitor. When you open display prefs yourself, what does it say at the top of the window? That is the name of your display.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|ML + MBP = Automatic Brightness Adjust not working anymore||teekayx||MacBook Pro||8||Aug 17, 2014 12:23 AM|
|Brightness Controls on External Monitor||GrandPhrase||Mac Basics and Help||0||Oct 25, 2013 04:44 AM|
|Monitor that supports brightness controls?||THink7||MacBook Pro||4||May 1, 2013 12:19 PM|
|Lost ability to adjust screen brightness||adder7712||Windows, Linux & Others on the Mac||1||Jul 21, 2012 02:06 PM|
|adjust brightness on 11in is this TRUE?||travis64||MacBook Air||4||Jun 18, 2012 11:21 PM|
All times are GMT -5. The time now is 09:36 PM.