blog

random posts about nerdy stuff

Handy Automator Actions


When building websites, I often have to make edits to images, filenames and other tasks that are quicker to do when automated. I use Automator to add Services to my contextual right-click menu right in the finder/desktop to perform some of these tasks. They're quick and simple to set up, and even easier to use.

Basic Image Edits

Perhaps I have some 12 megapixel JPGs that I need to upload to a CMS like Wordpress. If they're too big or the wrong format for a website, they'll need some edits before uploading. Simple solution: batch them before upload. All I have to do is right-click on the image or images and select my action from the Services menu and they're ready to go.

Resize an image to 50% it's original size

Maybe I have some photos sent to me as TIF, PSD or PNG and want them in JPG format:

Convert image to JPEG

Or PNG format:

Convert image to PNG

Or rotate one or more 180°:

Rotate image by 180°

Any of these Automator actions will make the change the original file, so be sure to make a backup first if needed.

Other Handy Actions

Let's say I have a list of files named "Screen Shot 2019-02-19 at 5.20.32 PM.png" and want them to be web-friendly (no spaces in the file name). I could rename them one at a time... or update them all with an Automator action:

Convert to Web Friendly Filenames

After that's done, all selected files are renamed to something that works better in a browser, like "Screen-Shot-2019-02-19-at-5.20.32-PM.png", which avoids those pesky %20's.

My Most Used Action

As I've noted before, I like to keep my desktop tidy. I have apps that open in the same size and position on my screen every time. If I need to move or resize it, with the following action I can easily snap it right back to where I want it.

Resize Window Postion

I have set positions for left, right, finder, chat window, among others. Each are set to an x, y, width and height to fit perfectly on my screen. You'll probably want to adjust the values for your setup/screen size. There are apps out there that do this for you, for MacOS and Windows, but I find it handy to define something more specific than "left side" and "right side".

Hope you find these actions useful. I recommend digging through the Automator app to see what other handy things it can do.