Mac File Automation: Quick Actions, Folder Actions & Shortcuts
In this article
This article explains the three main ways to automate file tasks on a Mac: Quick Actions in Finder, Folder Actions triggered by folders, and the Shortcuts app. You'll learn what each does, how to set them up, and which one fits your workflow.
Background: How Mac File Automation Evolved
Mac automation has roots in AppleScript and Automator, which let users record or script repetitive tasks. Automator, introduced in Mac OS X 10.4 Tiger, offered a visual drag-and-drop interface for building workflows. With macOS Mojave (10.14) in 2018, Apple introduced Shortcuts on Mac, gradually merging Automator's functionality into the newer Shortcuts app. As of recent macOS versions (Ventura and later), Automator is still present but deprecated; Apple recommends Shortcuts for new automations. Quick Actions and Folder Actions are two features that exist within this ecosystem—Quick Actions appear in the Finder's context menu and Touch Bar, while Folder Actions attach scripts to specific folders.
Quick Actions: Right-Click Automation in Finder
Quick Actions let you run a task directly from the Finder's right-click menu, the Preview pane, or the Touch Bar. They are built with Automator or Shortcuts and appear as menu items like "Convert Image" or "Rotate Left."
Common uses include:
- Converting images to a different format (e.g., JPEG to PNG)
- Resizing or cropping images
- Creating a PDF from selected files
- Adding a watermark or applying a filter
- Renaming multiple files at once
- Extracting text from a document
To create a Quick Action in Shortcuts: open Shortcuts, click the + button, then choose "Quick Action" as the type. Add steps like "Get Selected Files" and "Convert Image." In the action's settings, check "Use as Quick Action" and select which file types it should accept. Once saved, it appears in Finder's context menu when you right-click compatible files.
Folder Actions: Automate When Files Are Added
Folder Actions are scripts attached to a folder that run automatically when items are added, removed, or changed. They are set up via the Folder Actions Setup utility or Automator. For example, you can have a folder that automatically resizes any image dropped into it, or moves files to a different location based on their type.
To set one up:
- Open Automator (or use the Folder Actions Setup utility in /System/Library/CoreServices/).
- Create a new "Folder Action" workflow.
- Choose the folder to watch (e.g., ~/Downloads).
- Add actions like "Get Selected Finder Items" or "Filter Finder Items."
- Save the workflow; it will be installed and active.
Folder Actions are ideal for batch processing on a schedule or when you want a hands-off approach. They run in the background and can handle many files at once.
Shortcuts App: The Modern All-in-One
Shortcuts is Apple's current automation app, available on macOS and iOS. It can create Quick Actions, receive input from the Share menu, and even run on a schedule or when an event happens (like arriving at a location). Shortcuts can access many system features, including files, folders, and even shell scripts.
Unlike Automator, Shortcuts is designed to be more user-friendly and integrates with Siri. You can build a shortcut that combines multiple actions, such as "Get Latest Screenshots, Resize to 50%, Save to Desktop." Shortcuts also supports variables and control flow (If, Repeat, etc.), making it powerful for complex logic.
To create a file automation shortcut:
- Open Shortcuts and click +.
- Add actions from the library, e.g., "Get Selected Files" or "Get Contents of Folder."
- Use "Filter Files" to narrow down by type or name.
- Add actions like "Move Finder Items" or "Convert Image."
- Enable "Use as Quick Action" in the shortcut's settings to make it appear in Finder.
How to Choose: Which One Should You Use?
Your choice depends on the trigger and complexity:
- Quick Actions are best for on-demand tasks you run manually on selected files. They are simple to create and appear right in the context menu.
- Folder Actions are best for automatic processing when files are added to a specific folder. They require no manual trigger and are good for batch workflows.
- Shortcuts are the most flexible, combining both manual and automatic triggers (including time, location, and other events). They are the future and are recommended for new automations.
If you need to run a task on a schedule, Shortcuts can do that with "Time of Day" automation. Folder Actions cannot be scheduled; they only respond to folder changes.
Common Problems and How to Fix Them
Users often encounter these issues:
- Quick Action not appearing: Check that the action is enabled in Shortcuts settings ("Use as Quick Action") and that it accepts the right file type. Also, ensure the file type is compatible (e.g., a PDF action won't show for images).
- Folder Action not running: Verify the workflow is enabled in Folder Actions Setup (right-click the folder → Folder Actions Setup). Also, check that the script doesn't have errors; test it manually by running it in Automator.
- Shortcut fails on some files: The shortcut may not have permission to access certain folders (e.g., Desktop, Documents). Grant access in System Settings → Privacy & Security → Files and Folders.
- Automator missing: In newer macOS versions, Automator is still present but may be hidden. You can find it in /System/Applications/Utilities/ or use Shortcuts instead.
Frequently Asked Questions
Can I run a shell script as a Quick Action?
Yes. In Shortcuts, add a "Run Shell Script" action. You can pass the selected files as input. The script runs with the permissions of the user, and you can output results back to the shortcut.
How do I make a Folder Action run on a schedule?
Folder Actions are event-driven, not time-based. For scheduled tasks, use Shortcuts with a "Time of Day" automation, or use a launchd agent via Terminal (more advanced).
Can I share a Quick Action with someone else?
Yes. Shortcuts can be exported as .shortcut files and shared. Automator workflows can also be shared as .workflow files, but the recipient must install them in ~/Library/Workflows/Applications/Folder Actions/ (for folder actions) or ~/Library/Services/ (for Quick Actions).
Why is my Folder Action not working after I moved the folder?
Folder Actions are tied to the folder's path. If you move the folder, the workflow may break. Re-attach it by right-clicking the new folder → Folder Actions Setup → enable the workflow again.
What is the difference between Automator and Shortcuts?
Automator is the older tool, with a simpler interface but less flexibility. Shortcuts is the modern replacement, offering more actions, better integration with iOS, and support for automation triggers. Apple is gradually phasing out Automator, so new automations should be built in Shortcuts.
Can I use Quick Actions on files in iCloud Drive?
Yes, as long as the files are downloaded locally. If a file is only in the cloud, you may need to download it first (right-click → Download Now).