Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread Display Modes
Old Jul 1, 2009, 04:01 AM   #1
macrumors 6502a
Lostanddamned's Avatar
Join Date: May 2009
Location: London, UK
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"
	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
end tell
But this returns the error "System Events got an error: Can't set window "Color LCD" of process "System Processes" to 0.5"

any ideas what I am doing wrong?
13" MacBook Pro Retina  iPhone 6  iPad Mini Retina  Cinema Display
Lostanddamned is online now   0 Reply With Quote
Old Dec 15, 2011, 06:21 PM   #2
macrumors newbie
Join Date: Sep 2011
Change "Color LCD" to 1:
PHP Code:
tell application "System Preferences"
    set current pane to pane 
tell application "System Events"
delay 1
        set value of slider 1 of group 2 of tab group 1 of window 1 of process 
"System Preferences" to 0.5
        delay 1
    end tell
end tell 
auschase is offline   0 Reply With Quote
Old Jan 28, 2012, 12:03 AM   #3
macrumors newbie
Join Date: Feb 2008
"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.
spookybathtub is offline   0 Reply With Quote

MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
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

Forum Jump

All times are GMT -5. The time now is 08:14 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC