Sub topic 11
Turning an action into a droplet
A droplet is a small standalone program that runs a Photoshop action on any files or folders you drop onto its icon. This chapter assumes you can record and play an action, and that you have used the Batch command. Droplets reuse the Batch dialog, so most of the settings will look familiar.
What a droplet is and when to use one
A droplet is an executable file. On Windows it has an .exe extension. On macOS it is an application bundle with an .app extension. It stores a copy of your Batch settings: which action to run, how to open files, where to save results, and how to name them.
Use a droplet when:
- You run the same processing many times a week and want to skip opening the Batch dialog.
- Someone else needs to run your workflow and should not have to learn Photoshop menus.
- You want a fixed destination folder and fixed naming rules that nobody can change by accident.
Use the Batch command instead when the settings change from run to run, or when you are still testing the action.
A droplet does not contain Photoshop. It launches Photoshop (if it is not already running) and hands it the dropped files. Photoshop must be installed on the machine that runs the droplet.
How a droplet runs
The droplet processes files one at a time, exactly as the Batch command does.
Creating a droplet
Before you create the droplet, the action must already work. Test it with Batch on two or three sample files first.
- Open File > Automate > Create Droplet.
- Under Save Droplet In, click Choose and pick the name and location. On Windows, the file gets an
.exeextension. On macOS, it gets.app. - Under Play, choose the Set and Action.
- Set Override Action "Open" Commands, Include All Subfolders, and Suppress File Open Options Dialogs as needed.
- Choose Destination: None, Save and Close, or Folder.
- Set File Naming if you chose Folder.
- Choose how Photoshop handles errors.
- Click OK.
Photoshop writes the droplet file immediately. The action itself is not copied into the droplet in a way you can edit later. The droplet records the action's set name and action name, and it looks that action up in the Actions panel each time it runs.
Settings that differ from Batch
The Create Droplet dialog is the Batch dialog with a Save Droplet In section in place of Source. The source is always whatever you drop. Everything else is stored in the droplet.
| Setting | Choices | Effect in a droplet |
|---|---|---|
| Override Action "Open" Commands | On or off | On: the action's recorded Open step is skipped, and the dropped file opens instead. Off: the action's own Open step runs, usually on a fixed file. |
| Include All Subfolders | On or off | On: dropped folders are searched recursively. |
| Suppress File Open Options Dialogs | On or off | On: Camera Raw and similar dialogs do not stop the run. |
| Suppress Color Profile Warnings | On or off | On: profile mismatch messages do not appear. |
| Destination | None, Save and Close, Folder | Decides what happens to each file after the action. |
| Override Action "Save As" Commands | On or off | On: the action's Save As step writes to the droplet's destination and naming. |
| Errors | Stop For Errors, Log Errors To File | Log mode lets the run continue and writes problems to a text file. |
Choosing a destination
The destination setting matters most for safety.
- None leaves each processed file open in Photoshop. Nothing is saved. Use it only when the action ends with its own Save step or when you want to inspect results.
- Save and Close overwrites the original file. This destroys the source image. Use it only on copies.
- Folder writes results to a folder you pick, leaving the originals alone. This is the safe default.
Overriding Save As
If the action contains a Save As step, that step stores a fixed file name and folder from the time you recorded it. Without an override, every file in the run would be saved to the same path, and each one would replace the last.
Turn on Override Action "Save As" Commands. The action's Save As step then keeps its format settings (such as JPEG quality) but takes the folder and name from the droplet. Also, the action must contain a Save As step for the override to have anything to apply to. If it does not, Photoshop uses only the destination setting.
Naming files
With Destination: Folder, the File Naming section builds the output name from up to six fields, such as Document Name, a serial number, and the date. A typical pattern is Document Name plus _web, then the extension in lowercase. On Windows, tick Windows compatibility, and on macOS, tick Mac OS or Unix as needed, so names stay valid on every system you share files with.
If two source files could produce the same output name (for example, files with the same name in different subfolders), add a Serial Number field. Without one, later files replace earlier ones.
Using the droplet
- Locate the droplet in File Explorer or Finder. You can also place it on the desktop for easy access.
- Select one or more image files, or whole folders, and drag them onto the droplet icon.
- Photoshop opens, if needed, and processes each file.
You can also drop files onto a droplet while Photoshop is already running, and you can place a droplet in a Windows shortcut or the macOS Dock for repeated use.
Sharing and moving droplets
A droplet depends on three things outside itself:
- Photoshop installed on the target machine.
- The action, loaded in the Actions panel under the same set and action names.
- Any files the action references, such as watermark images or fonts.
To share a droplet, send the droplet file and the .atn action set (saved from the Actions panel menu using Save Actions). The recipient loads the .atn file first and then runs the droplet. If the set or action name has changed, or the action is not loaded, the droplet fails.
Droplets created on one operating system do not run on the other. Create separate droplets on each platform. The .atn file itself is portable, but file paths recorded inside it may not be.
Editing a droplet's behavior
You cannot reopen a droplet and edit its stored settings. There are two ways to change its behavior:
- Change the action. Because the droplet looks the action up by name at run time, editing the action in the Actions panel changes what the droplet does. This is useful, and it is also a risk: an accidental edit changes the droplet.
- Create the droplet again. Run Create Droplet with the same name and location, and replace the old file. Use this to change destination, naming, or error settings.
Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| Droplet starts Photoshop, then nothing happens | The action set is not loaded | Load the `.atn` file, then drop the files again |
| Every output has the same name | Save As was not overridden, or the naming has no serial number | Recreate the droplet with the override on, and add a serial number |
| A dialog stops the run | An unsuppressed file open or profile dialog | Recreate the droplet with the suppress options on |
| Originals are changed | Destination was Save and Close | Recreate with Folder, and restore from backup |
| Action fails on some files | The action expects a layer, mode, or size that those files lack | See the chapter on portable actions and troubleshooting |
| Run stops at the first error | Errors set to Stop For Errors | Recreate with Log Errors To File and read the log |
Worked example
You need every photo that arrives in a folder to be sized for the web and saved as JPEG in a separate folder.
- Record an action called
Resize for Webin a set calledMy Actions. Include Image > Image Size with a width of 1600 pixels and File > Save As JPEG. - Test it with Batch on three sample images, with the destination set to a test folder.
- Choose File > Automate > Create Droplet.
- Save the droplet as
WebResizeon the desktop. - Set the action to
My ActionsandResize for Web. - Turn on Override Action "Open" Commands, Suppress File Open Options Dialogs, and Override Action "Save As" Commands.
- Set Destination to Folder, and choose an output folder named
web. - Set File Naming to
Document Namefollowed byextensionin lowercase. - Set Errors to Log Errors To File, and click OK.
- Drag a folder of images onto
WebResize.
When the run ends, the web folder contains the JPEG copies and the originals are unchanged.
Exercise
A colleague sends you a droplet and an .atn file. You drop images on the droplet. Photoshop opens, but nothing is processed. What is the most likely cause, and how do you fix it?
Show answer
The action set is not loaded in the Actions panel, so the droplet cannot find the action by name. Load the .atn file from the Actions panel menu using Load Actions, then drop the files again.
Exercise
Why is Destination set to Save and Close risky in a droplet, and which setting avoids the risk?
Show answer
It overwrites each original file with the processed result, and there is no undo across files. Set Destination to Folder so results go to a separate location and the originals stay unchanged.
Exercise
You change the destination folder for a droplet. Can you edit the existing droplet? If not, what do you do?
Show answer
No. A droplet's stored settings cannot be edited. Run Create Droplet again with the same name and location, set the new destination, and replace the old file.