• 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: set FP brightness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set FP brightness


  • Subject: Re: set FP brightness
  • From: kai <email@hidden>
  • Date: Sat, 29 Nov 2003 19:58:33 +0000

on Thu, 27 Nov 2003 04:59:01 +0000, I wrote:

> on Wed, 26 Nov 2003 15:43:50 -0700, Robert Poland <email@hidden> wrote:
>
>> I seem to be hitting a brick wall or maybe everyone on holiday.
>>
>> Is there any way to control the screen brightness of a FP iMac?
>>
>> GUI seems to be the best possibility but I can't seem to figure out
>> how to control a slider (button).
>>
>> Anyone?
>
> I'll have a crack at it, Bob.
>
> Try something like this:

[snip: original script]

Turns out that, although my original script worked fine for me, it doesn't
fare quite so well on machines with a different type of display. (Thanks,
Bob - for being such a patient guinea pig.)

This version should travel a bit better:

-------------------------------------------------------
(Any wrapped lines abutting the left edge of the window
should be reconnected to the end of the previous line)
-------------------------------------------------------

--=====================================================

set v to 102 -- modify as required (integer between 0 and 128)
tell application "System Preferences"
run
set current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events" to tell process "System Preferences" to
tell window 1 to tell tab group 1
tell radio button "Display" to if value is 0 then
click
repeat until value is 1
end repeat
end if
tell group 2 to tell slider 1 to set value to v / 128
end tell

--=====================================================

---
kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: deleting text
  • Next by Date: Re: What is wrong with this script?
  • Previous by thread: Re: set FP brightness
  • Next by thread: [ANN] iList 1.5 beta 1
  • Index(es):
    • Date
    • Thread