If your workflow involves constantly renaming downloaded images, sorting PDF invoices into specific directories, or converting audio files into different formats, you are wasting valuable time on repetitive manual tasks.
Your Mac can perform these tasks for you entirely automatically using a powerful, hidden feature called Folder Actions. Folder Actions allow you to attach a script to a specific folder on your Mac. Whenever you drop a new file into that folder, the Mac instantly executes the script, processing the file without you having to click a single button.
How to Access Folder Actions
Folder Actions are managed using the built-in Automator application, but you can set them up directly from the Finder.
- Open a Finder window and create a new folder (for example, on your Desktop, name it “Image Converter”).
- Right-click on your newly created folder.
- Hover your mouse over Services (or Quick Actions on newer macOS versions) at the bottom of the context menu.
- Select Folder Actions Setup…
A dialogue box will appear asking you to confirm that you want to enable the Folder Actions service. Click Enable Folder Actions.
How to Attach a Pre-Built Script
macOS comes with several pre-built scripts that are ready to use immediately.
- After enabling the service, a list of available scripts will appear.
- Scroll through the list to see what your Mac can already do. For example, select the script named Image – Duplicate as JPEG.
- Click the Attach button.
The setup window will now show your folder on the left, and the attached script on the right. Ensure the checkbox next to the folder name is ticked, and then close the window.
Testing the Folder Action
Your automation is now live and waiting for input.
- Find a PNG or HEIC image file on your Mac.
- Click and drag that image file into your “Image Converter” folder.
- Wait a few seconds. You will see a small gear icon spinning in your Mac’s menu bar, indicating a script is running.
When you open the folder, you will find that the Mac has automatically duplicated your original image, converted the copy into a standard JPEG format, and saved it inside an “Original Images” subfolder. You achieved a multi-step file conversion simply by dragging and dropping a file.
How to Create Custom Folder Actions
The true power of this feature lies in creating your own custom rules using the Automator app.
- Open Automator (press Cmd + Space, type “Automator”, and press Enter).
- When asked to choose a type for your document, select Folder Action and click Choose.
- Look at the top of the workspace. Click the dropdown menu next to “Folder Action receives files and folders added to” and select the specific folder you want to automate.
- Use the Library on the left to drag and drop actions into your workflow. For example, you can drag “Filter Finder Items” (to only select PDFs) and then drag “Move Finder Items” (to automatically move those PDFs to your Documents folder).
- Save the workflow.
Now, any time you drop a mix of files into that folder, your Mac will automatically instantly sort the PDFs away, leaving everything else behind.