Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set FP brightness



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.



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.