How to Automatically Clean Up Desktop Screenshots Using a macOS Automator Script

Taking a screenshot on a Mac (Cmd + Shift + 4) is incredibly satisfying, but it has a massive drawback: every single screenshot you take is dumped directly onto your Desktop. If you are a designer, a QA tester, or a student, your pristine Desktop background will likely be completely obscured by hundreds of files named “Screen Shot 2026-08-26 at 10.45 AM.png” within a week.

You can manually drag them into a folder, but that requires constant maintenance. Instead, you can use Apple’s native (and vastly underutilized) Automator application to build a robotic script. This script will actively watch your Desktop, instantly detect the moment a new screenshot is created, and automatically teleport it into a hidden archive folder without you ever lifting a finger.

Step 1: Create the Archive Folder

  1. Open Finder and navigate to your Documents folder (or wherever you want the images to live permanently).
  2. Create a brand new folder and name it Screenshot Archive.

Step 2: Build the Automator Script

Automator is a visual programming tool built into every Mac that allows you to create complex scripts by simply dragging and dropping blocks of logic.

  1. Press Cmd + Space to open Spotlight, type Automator, and hit Enter.
  2. Click New Document in the bottom left corner.
  3. A window will ask you to choose a type for your document. Select Folder Action and click Choose.

Step 3: Configure the Trigger

A “Folder Action” means the script will only execute when a specific folder is modified.

  1. Look at the top of the main window. You will see a dropdown that says: “Folder Action receives files and folders added to:”
  2. Click the dropdown menu, select Other…, and choose your Desktop.
  3. The script is now actively monitoring your Desktop for any new files.

Step 4: Add the Logic Blocks

  1. Look at the search bar in the top-left corner of the Automator window. Type Filter Finder Items.
  2. Drag the “Filter Finder Items” action block into the massive empty workspace on the right.
  3. Configure the filter rules: Set it to “All of the following are true”, then set the dropdowns to Name > begins with > Screen Shot. (This ensures the script ignores normal files and only targets Apple’s specific screenshot nomenclature).
  4. Go back to the top-left search bar and type Move Finder Items.
  5. Drag the “Move Finder Items” block into the workspace, dropping it directly below the first block.
  6. In the “Move Finder Items” block, click the “To:” dropdown menu, select Other…, and choose the Screenshot Archive folder you created in Step 1.

Step 5: Save and Test

  1. Press Cmd + S to save your script. Name it “Auto-Clean Screenshots”.
  2. Close Automator.

The Result

Your robot is now running silently in the background of the operating system. Test it right now: Press Cmd + Shift + 3 to take a full-screen screenshot.

Watch your Desktop. You will see the screenshot file appear for a brief fraction of a second, and then it will instantly vanish. It has been immediately swallowed by the Automator script and safely deposited into your Document archive, ensuring your Desktop remains a perfectly clean, minimalist workspace permanently.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.