Re: Display Brightness Apple Script
Re: Display Brightness Apple Script
- Subject: Re: Display Brightness Apple Script
- From: Ken Fleisher <email@hidden>
- Date: Wed, 25 Jan 2006 10:38:45 -0500
It looks like a wrap-around problem. The word "value" should belong to
the previous line as the last word. I'd give that a try. "Value" by
itself is not a valid line of AppleScript code and that's why it's
failing and being highlighted.
Ken
On Jan 24, 2006, at 7:44 PM, 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
When I run it I get this error, "System Events got an error:
NSReceiverEvaluationScriptError: 4"
Also, the last use of the word Value is now highlighted in the script.
Thank You,
David Wollmann
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Colorsync-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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