script to automate screen brightness on macbook

Joined
May 6, 2013
Messages
1
Reaction score
0
Heyo, first post, here we go. My old macbook's logic board is toast and causes the screen to stay black. The only way I can see for a bit is when I bring the brightness to 0 and increase brightness by 1. It gives me about 2 seconds of visible screen then goes to black again.

Is it possible to make an automator script that would keep switching between settings of bright 0 and bright 1?

thx!
 
Joined
May 24, 2013
Messages
9
Reaction score
0
Yep. Make three automator actions - run applescipt, run applescript, and loop.

for the first applescript

tell application "System Events"
key code 107
end tell

for the second applescript

tell application "System Events" key code 113 end tellThen loop it! If it's too rapid, as mine seemed to be, you could put a 'Pause' action in between the applescripts.

I'd recommend running the loop for one-minute as a test run!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top