• 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
Setting the display brightness with GUI scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting the display brightness with GUI scripting


  • Subject: Setting the display brightness with GUI scripting
  • From: Rafael Santana <email@hidden>
  • Date: Thu, 3 Apr 2003 20:46:54 -0400

Because the readability of my flat panel iMac suffers a lot from
variations on the ambience light along the day, I could use a script
that automatically adjust the display brightness before or after sunset.
After much wrestling with GUI references in the Brightness control
panel, I could just 'increment' or 'decrement' in 0.1 steps the
position of the slider in this fashion:

tell application "System Preferences" to activate
tell application "System Events"
tell application process "System Preferences"
click menu item "Displays" of menu "View" of menu bar 1
repeat 10 times
increment slider 1 of group 2 of tab group 1 of window "iMac"
end repeat
end tell
tell application "System Preferences" to quit
end tell

But what I really need is a way to 'set' the position of this slider,
say to 0.5

Can somebody please hep?
_______________________________________________
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: Apropos of nothing
  • Next by Date: Re: Apropos of nothing
  • Previous by thread: Re: Apropos of nothing
  • Next by thread: Space in POSIX path
  • Index(es):
    • Date
    • Thread