brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: drag an Automator workflow into Shortcuts and it becomes a shortcut

Shortcuts
~/tips/tip-macos-shortcuts-import-automator-workflow

Drag MyWorkflow.workflow into the Shortcuts window

Converts an old Automator workflow into a shortcut in the Shortcuts app.

Automator still ships with macOS, but all of Apple’s attention goes to Shortcuts. If you have old workflows lying around, you don’t have to rebuild them by hand. The Shortcuts app on the Mac converts them for you.

Drag MyWorkflow.workflow into the Shortcuts window
(or Control-click it > Open With > Shortcuts)

Apple lists a few ways that all do the same: double-click the .workflow file in the Finder, drag it into the main Shortcuts window, drop it on the Shortcuts icon in the Dock, or Control-click it and choose Open With > Shortcuts. Shortcuts converts the workflow and adds it to your collection as a new shortcut.

Example: you made an Automator Quick Action years ago that renames scanned files or turns a batch of images into a PDF. Drag it into Shortcuts, look over the actions it created, and from then on it syncs, takes a keyboard shortcut and lives with the rest of your shortcuts. I’d move them over one at a time and test each one, instead of converting the whole folder in one go.

The caveat: Apple says almost any workflow can be migrated, and almost is the key word. When a workflow uses an action that Shortcuts doesn’t support, you get an alert that tells you which one. Then you’ll have to replace that step yourself, with a different action or a Run Shell Script step. Keep the original .workflow file until the new shortcut does the job, because it’s your only reference to how the old one worked.

Further reading: Apple: Import shortcuts and Automator workflows on Mac, Apple: Import Automator workflows into Shortcuts

More Shortcuts tips chrome://extensions/shortcuts right click an entry > Show Same Keybindings change the name and icon if you like > Add System Settings > Keyboard > Keyboard Shortcuts > Services Shortcuts app > click a shortcut > Edit > Automation > choose a trigger All Shortcuts tips (8) All topics

Link