Skip to main content
coreydaley.dev
Docs menu

Automator on the Mac: the basics

Automator builds workflows from a library of actions, like Shortcuts, but it’s the older tool: it has been on the Mac since 2005, and when Apple brought Shortcuts to the Mac in 2021 it described Shortcuts as the start of a transition away from Automator. Automator is still in macOS 27.2 (version 2.10), and its workflows still run. For something new, start in Shortcuts; use Automator for workflows you already have, and for its other workflow types, like print plugins and Calendar alarms.

This page builds an Automator Quick Action that resizes the photos you select in Finder and saves them as JPEGs. I tested it on macOS 27.2, with a workflow I made as a file and then opened in Automator and ran from Finder and Terminal; the steps below use Automator’s labels for the same actions.

The kinds of workflow

Automator's document type chooser with Quick Action selected

File > New asks what you’re making. The type decides how the workflow starts:

TypeRuns when
WorkflowYou run it in Automator or with the automator command
ApplicationYou open it or drop files on it
Quick ActionYou choose it in Finder (or another app’s Services menu)
Folder ActionFiles are added to a folder you attach it to
Calendar AlarmA Calendar event’s alert goes off
Print PluginYou choose it from the PDF menu in a print dialog
Image Capture PluginYou import from a camera or scanner in Image Capture
Dictation CommandYou say its phrase while dictating

On macOS 26 and later, Shortcuts can also watch a folder, with a Folder trigger. I only tested a Quick Action and a plain workflow for this page.

Build the resize Quick Action

Automator workflow with Copy Finder Items, Change Type of Images and Scale Images actions
  1. Choose File > New, then Quick Action. At the top of the workflow, set it to receive image files in Finder.
  2. Find Copy Finder Items in the library (or type its name in the search field) and drag it into the workflow. Choose where the copies go, such as the Desktop. Without it, the next actions change your original photos.
  3. Add Change Type of Images and set it to JPEG.
  4. Add Scale Images, set to To Size (pixels) and 1600.
  5. Choose File > Save and name it. Quick Actions live in ~/Library/Services, in your user Library; delete one there to remove it.

Scale Images sets the longest side: in my test a 4032×3024 photo became 1600×1200, and a 2000×3000 portrait photo became 1066×1600.

Run it

Finder's Services menu listing Resize for Email (Automator) under Pictures

From Finder. Select photos and choose Finder > Services in the menu bar; image Quick Actions are listed under Pictures. Mine appeared there right after saving. It didn’t show up in the right-click Quick Actions menu straight away; that menu has a Customize… item for choosing what it lists, which I didn’t change.

From Terminal. The automator command runs a saved workflow, with -i for the input:

automator -i ~/Pictures/beach.png "Resize for Email.workflow"

It printed the path of the new JPEG when it finished.

Moving a workflow to Shortcuts

Open a .workflow file with Shortcuts and it offers to add it as a shortcut, converting each Automator action it can. Mine converted all three: Copy Finder Items became Save File, Change Type of Images became Convert Image to JPEG, and Scale Images became Resize Image by Longest Edge to 1600.

When I ran the converted shortcut from Terminal, it finished without an error and saved nothing, not even the first copy. I didn’t track down why. One difference is clear from the editor: Automator changes the copied file in place, while in the shortcut the save comes before the convert and resize, whose results nothing saves. Treat a converted workflow as a starting point, and test it before you rely on it.

Where else Automator fits

  • Run AppleScript and Run Shell Script actions let a workflow run a script, the same as in Shortcuts.
  • Automator workflows saved as Application run like any app.