|Jul 1, 2009, 04: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 iPad Mini Retina Cinema Display
|Jan 28, 2012, 12:03 AM||#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 01:23 AM|
|Brightness Controls on External Monitor||GrandPhrase||Mac Basics and Help||0||Oct 25, 2013 05:44 AM|
|Monitor that supports brightness controls?||THink7||MacBook Pro||4||May 1, 2013 01:19 PM|
|Lost ability to adjust screen brightness||adder7712||Windows, Linux & Others on the Mac||1||Jul 21, 2012 03:06 PM|
|adjust brightness on 11in is this TRUE?||travis64||MacBook Air||4||Jun 19, 2012 12:21 AM|
All times are GMT -5. The time now is 06:22 PM.