Automating File Organization on macOS with Automator and Folder Actions

If you’re like most Mac users, your Downloads folder can quickly turn into a chaotic pile of files. Every saved attachment, recording, and export ends up in the same place — and sorting them manually takes time.

For one of my projects, I wanted my system to automatically move certain files with a consistent naming pattern into an organized folder in my cloud storage. Using Automator and a simple Folder Action, I built a lightweight automation that now does the work for me.

You can easily do the same.


What You’ll Need

Before we begin, make sure you have:

  • A Mac running macOS Ventura or later
  • Automator (it’s preinstalled on all Macs)
  • A destination folder, preferably in your cloud storage directory
  • A consistent file naming pattern (like project.prefix)
  • About 5 minutes of setup time

The Goal

We’ll create an Automator workflow that automatically moves any file beginning with a certain prefix (for example, project.prefix) and of a specific type (such as MP3) from your Downloads folder into a destination folder, such as:

~/CloudDrive/ProjectName/ProcessedFiles/

This setup works beautifully for podcast episodes, exported audio files, images, or documents that follow a repeatable naming convention.


Step-by-Step Setup

1. Create a Folder Action

  1. Open Automator (Command + Space → type “Automator”).
  2. Choose New Document → select Folder Action → click Choose.
  3. At the top of the workflow window, set: Folder Action receives files and folders added to: Downloads

2. Add the Required Actions

Automator actions run in order from top to bottom. Add these three in this order:

a. Get Specified Finder Items

  • Search for “Get Specified Finder Items” and drag it into your workflow.
  • Click Add… → choose your Downloads folder.

(This step ensures Automator receives the correct files when triggered.)

b. Filter Finder Items

  • Add “Filter Finder Items” below it.
  • Configure the filters like this:
Filter FieldConditionValue
Namebegins withproject.prefix
KindisAudio

Make sure the dropdown at the top of this action says all of the following are true.

c. Move Finder Items

  • Search for “Move Finder Items” and drag it below your filter.
  • For To: → click Other… → navigate to: ~/CloudDrive/ProjectName/ProcessedFiles/

3. Add a Dynamic Notification

To confirm which files were moved, add a short AppleScript step that generates a personalized notification.

  1. Add Run AppleScript below “Move Finder Items.”
  2. Replace the sample code with:
on run {input, parameters}
    tell application "Finder"
        repeat with aFile in input
            set fileName to name of aFile
            display notification "Moved “" & fileName & "” to ProjectName folder." with title "ProjectName Automation"
        end repeat
    end tell
    return input
end run
  1. Save your workflow as: Move Project Files.workflow

Testing Your Workflow

  1. Open Folder Actions Setup.app (search for it via Spotlight).
  2. Check Enable Folder Actions.
  3. Ensure your Downloads folder is listed and the workflow is attached.

Now drop a test file, like project.prefix_demo.mp3, into Downloads.
If everything is configured correctly, it will move automatically and show a notification like:

ProjectName Automation
Moved “project.prefix_demo.mp3” to ProjectName folder.


Making Notifications Last Longer

macOS controls how long notifications stay on screen.
If you want the message to remain visible until dismissed:

  1. Open System Settings → Notifications → Automator.
  2. Change Alert Style from Banner to Alert.

Prefer a small pop-up window instead? Replace the last line of the AppleScript with:

display dialog "Moved “" & fileName & "” to ProjectName folder." buttons {"OK"} giving up after 5

This will display a dialog box for five seconds before it closes automatically.


Troubleshooting

ProblemLikely CauseFix
“Filter Finder Items was not supplied with the required data.”Workflow didn’t receive input.Add “Get Specified Finder Items” above the filter.
Workflow doesn’t trigger.Folder Actions disabled.Open Folder Actions Setup.app and enable them.
Files don’t move.Incorrect filter or path.Double-check filters and destination.

Bonus Tips and Variations

  • Multiple file types: Add another condition like “Kind is Video.”
  • Different watch folder: Use Desktop, Documents, or a shared network folder instead of Downloads.
  • Clone the workflow: Duplicate and edit only the prefix and destination for other projects.

Adding these small adjustments lets you scale your automations without rebuilding them from scratch.


How It Works (Behind the Scenes)

When a new file lands in your Downloads folder, macOS passes it to the Folder Action workflow.
The workflow:

  1. Retrieves all items (Get Specified Finder Items).
  2. Filters them to match your chosen prefix and file type.
  3. Moves the qualifying files to your defined folder.
  4. Displays a macOS notification confirming the move.

It’s simple, lightweight, and doesn’t require third-party software.


Final Thoughts

Automation isn’t just about saving time — it’s about stewardship of attention.
Every repetitive task you eliminate frees mental space for meaningful work. Whether you’re managing a podcast, archiving media, or organizing documents, macOS Automator can quietly handle the details behind the scenes.

Start small, build confidence, and watch how much smoother your daily workflow becomes.


Summary:

  • Watch folder: Downloads
  • Filter: Files beginning with project.prefix and type Audio
  • Move to: ~/CloudDrive/ProjectName/ProcessedFiles/
  • Notify: “ProjectName Automation” banner after move

Now your Mac automatically organizes files the moment they appear — leaving you free to focus on what really matters.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.