donate Brightness.m and Brightness.applescript

dear mario
i edited my old AutoBrightness routines to produce Brightness routines that control the brightness slider. They seem to work fine, and offer an alternative to Screen('ConfigureDisplay','Brightness',..) which Apple has recently made unreliable.
Can I donate these to the Psychtoolbox?
Attached.
best
denis


photo
Denis Pelli
Professor of Psychology & Neural Science, New York University
Btw., Screen Brightness works still fine on my 2010 MacBookPro with OSX 10.12 latest service pack, so the macOS bug is likely specific to your model of MacBook Air.

The brightness slider indeed doesn't move, i don't know if it ever moved or not. But then i also don't see the point of having the brightness control GUI open and focused if you want to reliably control brightness from a program. That's just begging for trouble.

-mario