Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Display Brightness Apple Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display Brightness Apple Script



On Jan 24, 2006, at 6:44 , david wollmann wrote:
Can someone help me out with this Apple Script? This was posted awhile ago on this forum but it is not working with 10.4.3.
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 slider 1 of group 2 of tab group 1 of window 1 to set x to
value
display dialog x
end tell

David,

Here is a version of your script that works on my machine running 10.4.4-


set bValue to 1.0 tell application "System Preferences" activate set current pane to pane "com.apple.preference.displays" end tell

tell application "System Events"
	tell process "System Preferences"
		set bValue to value of slider 1 of group 2 of tab group 1 of window 1
		display dialog bValue
	end tell
end tell


HTH Craig Sutherland _______________________________________________ Do not post admin requests to the list. They will be ignored. Colorsync-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Display Brightness Apple Script (From: david wollmann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.