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

Screen brightness


  • Subject: Screen brightness
  • From: Axel Luttgens <email@hidden>
  • Date: Tue, 25 May 2004 17:07:02 +0200

Does somebody know about a (shell) command allowing to adjust the screen brightness?
Up to now, the only way I have is the obvious one, through UI scripting. [1]
But this is of course not the most convenient, unobstrusive way.


TIA
Axel


[1] For those who might be interested, here follows a skeleton:

-- The wanted brightness: a real between 0 and 1
set V to 0.5

tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.displays"
end tell

tell application "System Events"
tell process "System Preferences"
tell slider 1 of group 2 of tab group 1 of window 1
set value to V
end tell
end tell
end tell

tell application "System Preferences" to quit
_______________________________________________
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: AppleScript / Perl comparison
  • Next by Date: Re: Setting up a cron job
  • Previous by thread: Problem activating a script from within FileMaker 6
  • Next by thread: Why an Acrobat Script Only Works Once?
  • Index(es):
    • Date
    • Thread