Skip to content

Use scripts with Automator on Mac — by Apple Support

beginnerpageLink only (©)

Shows how to add the Run Shell Script and Run AppleScript actions to an Automator workflow. For shell scripts you pick the shell and type the commands; for AppleScript you can edit and test in the action or write it in Script Editor.

Quick steps

  1. Drag Run Shell Script from Utilities into the workflow
  2. Choose a shell and enter commands
  3. Test before saving

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on support.apple.com

Source: Use scripts with Automator on Mac by Apple Support. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

automatorapplescriptshell scriptmacos

More in AppleScript & Shortcuts

AppleScript, Do Shell. How do I write the 'test' command to the 'script editor'? — by Quinn "The Eskimo!" (Apple DTS) on Apple Developer Forums

intermediateforum

Apple's DTS engineer explains that do shell script throws an AppleScript error whenever the command exits non-zero (so test -d on a missing folder errors), shows try blocks to handle it, multi-line scripts, and quoted form of POSIX path for safe paths. He also suggests avoiding the shell where System Events can do the job.