|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 5S 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|
|any way to get Siri to adjust screen brightness?||debudebu||iOS 5 and earlier||1||Nov 13, 2012 01:18 AM|
|Fractional adjustment of brightness/volume gone in Lion?||darnocs||Mac OS X 10.7 Lion||2||Sep 28, 2012 07:36 PM|
|Adjust colour/brightness of multiple photos||mrbash||Digital Photography||11||Sep 7, 2011 12:50 PM|
|Monitor brightness after installing Win 7||Newmac50||Windows, Linux & Others on the Mac||4||Mar 30, 2011 05:04 AM|
|Is there anyway to adjust the brightness of the screen with my apple remote?||ljump12||Mac Basics and Help||1||Jul 23, 2007 11:32 PM|
All times are GMT -5. The time now is 10:22 AM.