• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Display Brightness Apple Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

also works for me and may provide a solution for you. Here is the link to the thread and observation by Matt Neuberg or the ASS list <http://lists.apple.com/archives/applescript-studio/2004/Jun/msg00131.html>.

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>)
 >Re: Display Brightness Apple Script (From: Craig Sutherland <email@hidden>)
 >Re: Display Brightness Apple Script (From: Mark Connell <email@hidden>)

  • Prev by Date: Re: Display Brightness Apple Script
  • Next by Date: Re: Time to upgrade monitor optimizer
  • Previous by thread: Re: Display Brightness Apple Script
  • Next by thread: Re: Display Brightness Apple Script
  • Index(es):
    • Date
    • Thread