Saturday, August 8, 2020

#1 2020-08-02 12:41:07 am

Johannn
Member
Registered: 2020-05-31
Posts: 1

Script to dim the display

I want a script that dims the display as much as possible.

Google said that the script below should work, but it doesn't do anything for me. Do I need to modify it to work in Catalina?

Applescript:

tell application "System Events"
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
   key code 107
end tell

Offline

 

#2 2020-08-02 06:42:08 pm

maro
Member
From:: Nerima, Tokyo, Japan
Registered: 2004-05-30
Posts: 118
Website

Re: Script to dim the display

How about brightness tool?
https://github.com/nriley/brightness

I use it from AppleScript
http://piyocast.com/as/archives/8821


I wrote thousands of AppleScript to realize my idea. Natural language interface, voice recognition commander and so on. Though my mother toungue is strange language, Japanese, my most frequently write language is AppleScript. I believe it is for making things easy and powerful.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)