• 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: Thu, 27 Nov 2003 04:59:01 +0000

on Wed, 26 Nov 2003 15:43:50 -0700, Robert Poland <email@hidden> wrote:

> Hi,
>
> 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:

------------------------

set v to 0.8 -- modify as required (value between 0.0 and 1.0)
set s to "System Preferences"
set c to "Color LCD"
set d to "Displays"
tell application "System Preferences" to run
tell application "System Events"
tell process "System Preferences"
tell window 1
set n to name
if n is not c then
if n is not s then
tell tool bar 1 to click button "Show All"
repeat until name is s
end repeat
end if
tell scroll area 1 to click button d
repeat until name is c
end repeat
end if
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
set value to v
repeat until value is v
end repeat
end tell
end tell
end tell
end tell
end tell
tell application "System Preferences" to quit -- if required

------------------------

---
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: Filemaker object ID
  • Next by Date: Re: help in scripting Address book
  • Previous by thread: set FP brightness
  • Next by thread: Re: set FP brightness
  • Index(es):
    • Date
    • Thread