How to Use Folder Actions in Automator

Folders are a great place to store files and subfolders, but folders can also be smart about the content they’re storing. For instance, Dropbox can whisk files stored in its folder into the cloud — so why can’t you do something like this with any folder? Well, as it turns out, you can, and all you need is a simple script cobbled together in OS X’s automation tool, called Automator. Continue reading, and we’ll show you how to use Folder Actions to turn regular folders into smart-ified folders with pizazz.

What is a Folder Action?

A folder action is just that… it’s an action that you can place on a particular folder that will be run whenever new files (or folders) are added to that smart folder. You can do things like cropping and emailing photos when they are added to a folder, or any number of other actions.

You can created Apple Script-based folder actions, or Automator-based folder actions. For simplicity’s sake, we’ll take a look at how to create folder actions using Automator, since more Mac users will be able to take advantage of this powerful tool.

The Synopsis: We’ll be using Automator to create a folder action that will resize images dropped into a folder and create a new email with the resized images attached.

Difficulty: Medium

1. Create a Folder Action

To begin, launch Automator (located in your Applications folder). When the application launches, select “Folder Action” from the list of available Automator workflow types.

The Folder Action workflow makes it so that added files trigger the workflow, and are also the input to the workflow. Once selected, at the top of the workflow, you will see a “Folder Action receives files and folders added to …” Using the drop-down menu, select “Other,” and navigate to and select a folder on your system that you wish to attach the folder action to.

Next, we’ll begin building the workflow that will get triggered when files are added to the folder containing the action.


Find and drag the following actions to the workflow section of Automator (the right-hand palette, underneath the folder selection):

1. Scale Images — Select “Don’t Add” at the copy prompt that appears; select by percentage for the scale option, and enter a scale amount (we’ll use 50{813a954d5e225a1509f22204ece89c855080ce25555f20805f61bed63cbfde3b})

2. New Mail Message


That’s all.

Select File > Save, and in the save dialog, enter the name of the workflow that you wish to reference this folder action by in the future.