Re: Display Brightness Apple Script
Re: Display Brightness Apple Script
- Subject: Re: Display Brightness Apple Script
- From: Craig Sutherland <email@hidden>
- Date: Wed, 25 Jan 2006 09:55:23 -0600
On Jan 24, 2006, at 9:34 , Mark Connell wrote: Craig,
DOesn't work on my 10.4.4. PowerBook with external screen - not mirrored.
I also get a NSReceiverEvaluationScriptError: 4 on 'value' in the set statement.
Mark On 25/01/2006, at 2:27 PM, Craig Sutherland wrote: set bValue to 1.0
>snip<
Mark,
Martin's follow up on this thread points to a script that ensures access for assistive devices is turned on, which is a 'good thing' to have when GUI scripting. You probably knew that, however. I have received the NSReceiverEvaluationScriptError with the assistive devices turned on with the script also, but with the version posted earlier the error no longer was triggered. The error does not ever appear when debugging the script in SCript Debugger, but would intermittently happen when running the script. One suggestion on the applescript-studio list was to be more explicit when describing the reference by adding a 'get' to the long string of 'ofs' in the item descriptor. So substitute this line-
set bValue to (get value of slider 1 of group 2 of tab group 1 of window 1) for this one-
set bValue to value of slider 1 of group 2 of tab group 1 of window 1
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