Once upon a time, I had an application which would dim the screen of my Mac down to 0, and then exit. Somewhere along the way I seem to have lost the app and can no longer find it.
Yes, I know I could just hold F1 and do the same thing manually, but I liked having an app that just did it for me.
So I did what any self-respecting geek would do: I wrote a shell script.
Others did the heavy lifting
Let me be clear that my little shell script wrapped in Automator was only a tiny piece of this puzzle.
First I'm going to tell you who did all the heavy lifting, and then you can decide how you want to put the pieces together for yourself. (I highly recommend reading to the end before you do anything.)
Nicholas Riley