Skip to content

How to Fix macOS Automator Workflow Errors — Actions Not Working

DodaTech Updated 2026-06-24 2 min read

In this tutorial, you'll learn about How to Fix macOS Automator Workflow Errors. We cover key concepts, practical examples, and best practices.

The Problem

Automator workflow fails:

The action "Run Shell Script" encountered an error.

or:

Workflow cannot be saved.

Quick Fix

Step 1: Check action permissions

Automator actions need system permissions. Ensure:

System Settings > Privacy & Security > Automation > Automator

Check the required permissions are enabled.

Step 2: Fix shell script actions

WRONG — command not found:

# The PATH in Automator is limited

RIGHT — use full paths:

/usr/local/bin/ffmpeg -i "$1" output.mp4

Or set the PATH:

export PATH="/usr/local/bin:/opt/homebrew/bin:$PATH"
ffmpeg -i "$1" output.mp4

Step 3: Fix workflow not saving

# Repair Automator preferences:
rm ~/Library/Preferences/com.apple.Automator.plist

Restart Automator.

Step 4: Use proper input/output

# Automator passes input via stdin and expects output via stdout
while IFS= read -r file; do
    result=$(process "$file")
    echo "$result"
done

Step 5: Test actions individually

Run one action at a time by using the "Run" button at the top right of each action.

Step 6: Export as an app

File > Convert To > Application

This creates a standalone .app that runs the workflow.

Prevention

  • Test each action before adding the next one.
  • Use full paths for executable commands.
  • Save workflows as .workflow files before conversion.

Common Mistakes with automator workflow

  1. Forgetting that lazy evaluation defers computation until the value is forced, causing space leaks with unevaluated thunks
  2. Using return to exit a function early instead of wrapping a pure value in the monad
  3. Mixing let bindings with <- bindings in do notation, producing type errors

These mistakes appear frequently in real-world MACOS code. DodaTech's contributors have identified these patterns through analysis of open-source projects and production systems.

Practice Exercise

Write a pure function that safely divides two integers using Maybe, then test it with edge cases like division by zero and negative numbers.

This exercise reinforces the concepts covered in this guide. Try implementing it before checking online solutions.

FAQ

### What is the difference between workflow and application?

Workflows (.workflow) are editable in Automator. Applications (.app) are standalone and run without Automator.

Why does my workflow work in Automator but not as a standalone app?

File permissions and paths differ between environments. Use absolute paths and check accessibility permissions.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro