Using Automator as a display power button in os x

The Problem

I like all-in-one Macs. Currently I have a Macbook, before that I had one of the old CRT eMacs. The all-in-one design minimizes clutter and cable mess. There’s a tradeoff in a lack of upgradability and maintenance, but I feel the pros outnumber the cons.

Anyway, these macs are all missing one feature that, for me, is rather important: a power button.

If I’m doing a batch-processing task, or downloading an especially large file, I like to be able to switch off the display on my Macbook to avoid power costs – that display is the really power-hungry part of the computer. The only easy way to do this with an all-in-one is to open system preferences, go to energy saver, and drag that little slider all the way to the left.

That’s okay, but I’d prefer a keystroke, thankyou-very-much.

There are Applescript solutions available, but they involve playing around with the pmset command line utility, which requires sudo access to alter, so you have to play around with sudoers and whatnot. I’d rather avoid that if I can.

Instead, I’ve found a ginchy way to do this with Automator.

The Fix
So to fix this I’ve found a neat little Automator action that you can download and install yourself. You can get it here as well as lots of other handy-dandy Automator doodads.

What this action does is give you a slimmed down version of the energy saver right there in the Automator window. Here’s a pic to illustrate:

Picture 1-1

Now all you have to do is make up a simple one-action workflow and attach it to a keybinding. Bam! Display on/off switch. Well, sorta – it turns off after a minute. But it’s the closest thing you can get.

You can also use this action in a bunch of other workflows – I use it in my alarm clock script to ensure that the display turns off while the musics are waking me up. Hallelujah!

One Response to “Using Automator as a display power button in os x”

  1. […] Using my previous hint to set display sleep times, you can make sure the screen isn’t blaring away (although personally I’ve found the bright screen useful in dark mornings). […]

Leave a Reply