Mac Productivity Guide

Supercharge your Mac. Apps, shortcuts, workflows, and productivity tips for macOS users.

Mac Automation Scripts for macOS Sequoia 2026 — Shell, Shortcuts, and Automator

Published: April 14, 2026 | Category: Automation | Reading time: 9 min

Mac automation is one of those skills that compounds aggressively. Once you automate a task that takes 5 minutes, you've saved 5 minutes forever. Do that ten times and you've recaptured an hour every week. macOS Sequoia makes automation more accessible than ever with the Shortcuts app, but the old standbys — shell scripts, Automator, and crontab — still power the most flexible workflows.

Getting Started: The Shortcuts App (No Code Required)

Apple's Shortcuts app, built into macOS Sequoia, covers 80% of typical automation needs without writing a single line of code. You chain actions together: "When I arrive at work, open these 5 apps" or "Convert this image to WebP and save it to a folder."

Useful built-in Shortcuts actions for productivity:

  • Run Shell Script — execute bash/zsh commands from within a Shortcut
  • Filter Files — find files by name, kind, or date modified
  • Get Contents of Webpage — scrape data from websites
  • Run JavaScript on Webpage — automate browser interactions
  • Resize Image — batch image processing without Preview
  • Encode/Decode Media — convert audio/video formats

Shortcuts also integrates with macOS system features: you can trigger shortcuts from the menu bar, with hotkeys, via Siri, or from the Touch Bar.

5 Automation Scripts Worth Setting Up Today

1. One-Command Backup to External Drive

Shell script that syncs your project folder to an external drive using rsync. Safer than drag-and-drop because it only copies changed files and verifies the copy.

#!/bin/zsh
# Sync project folder to backup drive
rsync -avz --delete ~/Projects/ /Volumes/Backup/Projects/
echo "Backup complete: $(date)" | tee -a ~/Logs/backup.log

Save this as ~/Scripts/backup-projects.sh, make it executable with chmod +x ~/Scripts/backup-projects.sh, then run it manually or schedule it with launchd.

2. Batch Rename Files

macOS Sequoia's Shortcuts app can handle most batch renames without scripting. But for more complex patterns, this zsh one-liner is faster:

# Rename all .jpeg files in current folder to sequential names
counter=1; for f in *.jpeg; do mv "$f" "$(printf '%03d' $counter)_${f}"; counter=$((counter+1)); done

Or with a date prefix using the shell:

# Prefix all files in folder with today's date
for f in *; do mv "$f" "$(date +%Y%m%d)_$f"; done

3. Automate New Project Folders

Every time you start a new project, you create the same folder structure: /project-name/src, /project-name/docs, /project-name/assets. Automate it:

#!/bin/zsh
# Usage: ./new-project.sh project-name
PROJECT_NAME=$1
mkdir -p ~/Projects/$PROJECT_NAME/{src,docs,assets,tests}
cd ~/Projects/$PROJECT_NAME
echo "# $PROJECT_NAME" > README.md
echo "Project created at $(date)"

Save this as new-project.sh and run ./new-project.sh my-awesome-app. It creates the folder structure and a starter README in one command.

4. Scheduled Screenshot Cleanup

macOS saves screenshots to your Desktop by default. Over months, this gets cluttered. A cron job or launchd agent can move screenshots older than 7 days to an archive folder:

#!/bin/zsh
# Move screenshots older than 7 days to archive
find ~/Desktop -maxdepth 1 -name "Screenshot*" -mtime +7 -exec mv {} ~/Screenshots/Archive/ \;
echo "Screenshots archived: $(date)"

Schedule this daily with launchd by saving a plist to ~/Library/LaunchAgents/.

5. Clipboard History with Shell

macOS clipboard is single-item. For a running history, combine a shell function with a temp file:

# Add to ~/.zshrc
cliphist() {
    if [ -f ~/.clipboard_history ]; then
        cat ~/.clipboard_history
    else
        echo "No clipboard history"
    fi
}
alias c='pbcopy'
export CLIPBOARD_HISTORY_FILE=~/.clipboard_history

For a full clipboard manager with search and history, consider the free Mac app Clipy or Clipper. But for light use, a simple shell-based approach works.

Automator Workflows That Still Work in 2026

Automator is older than Shortcuts and has a steeper learning curve, but some things still work better in Automator:

  • Watch Me Do — records mouse/keyboard actions and plays them back. Useful for automating legacy apps that don't support AppleScript.
  • Batch rename with Automator — more visual than shell scripting for non-technical users.
  • Folder Actions — trigger a workflow when files are added to a folder. Useful for processing downloads automatically.
  • PDF manipulation — combine, rotate, and extract pages from PDFs with built-in Automator actions.

Scheduling: launchd vs cron

macOS deprecated cron in favor of launchd. For automation scripts that run on a schedule, create a launchd plist file:

~/Library/LaunchAgents/com.mycompany.backup.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "...">
<plist version="1.0">
<dict>
    <key>Label</key><string>com.mycompany.backup</string>
    <key>ProgramArguments</key>
    <array><string>/bin/zsh</string><string>/Users/jensen/Scripts/backup-projects.sh</string></array>
    <key>StartCalendarInterval</key>
    <dict>
        <key>Hour</key><integer>18</integer>
        <key>Minute</key><integer>0</integer>
    </dict>
</dict>
</plist>

Load it with launchctl load ~/Library/LaunchAgents/com.mycompany.backup.plist.

My Automation Stack

On my main Mac, I use:

  • Raycast for triggering shortcuts and running scripts
  • Shortcuts app for most automations (RSS to PDF, image resizing, file organization)
  • Shell scripts for anything involving data processing, Git, or system-level tasks
  • Rectangle for window management (not script-related, but keeps my workspace sane)
  • launchd for daily scheduled tasks (backup, screenshot cleanup)

Start small. Pick one repetitive task you do every day, spend 20 minutes automating it, and you've bought back that time for every day you'll use this Mac.