Sub topic 9
Running an Action on a Folder with Batch
This chapter assumes that you can record and play an action, choose an action set, and save images in common formats. You should also understand the difference between a source file and an output file. The Batch command uses an existing action and applies it to many files without requiring you to open each file manually.
How Batch processing works
Batch processing has four parts:
- Photoshop opens a source file.
- Photoshop plays the selected action.
- Photoshop saves the result according to the destination settings.
- Photoshop closes the document and continues with the next file.
The action should contain only the image operations. Let the Batch dialog control file opening, saving, and naming when possible.
Configure the Batch dialog
Open the command with File > Automate > Batch. Use the Play section to select the action set and action. Confirm that the action is the version you intend to run.
In the Source section, choose Folder, then select the folder containing the original files. Enable Include All Subfolders only when nested folders should be processed. If the source folder contains unrelated files, move them elsewhere or use a folder that contains only the intended inputs.
In the Destination section, choose Folder and select a separate output folder. A separate folder protects the originals and makes it easier to compare results. Enable Override Action “Save As” Commands when the action contains a recorded save step that should not determine the output location.
The file-naming controls determine the names of generated files. Combine elements such as the document name, a serial number, and an extension. Ensure that the final extension matches the selected format. For example, a JPEG destination should not receive a PSD extension.
| Setting | Recommended use |
|---|---|
| Source: Folder | Process files from a selected folder |
| Include All Subfolders | Process nested folders as well |
| Destination: Folder | Save copies in a controlled output location |
| Override Action “Save As” Commands | Ignore a recorded save location |
| Errors: Log Errors to File | Continue processing while recording failures |
Avoid common action conflicts
A batch can fail when the action expects something that every source file does not have. For example, a step that selects a layer named Background copy may stop when that layer is missing. Test the action on representative files before processing the entire folder.
Dialogs can also interrupt a run. In the Batch dialog, use Suppress File Open Options Dialogs and Suppress Color Profile Warnings when those prompts are predictable and safe to suppress. Do not suppress a dialog if its choice affects color management or file interpretation in a way you have not tested.
If the action includes a Save As step, decide which system should control saving. Let the action save when it must produce a specific format or intermediate file. Otherwise, remove or bypass that step and let the Batch destination settings handle the output.
Run and verify the batch
Start with a small test folder containing two or three copies of representative files. Check dimensions, color mode, layers, file format, and filenames. Then process the full folder.
Keep the original files untouched until you have inspected the outputs. If the run stops, read the error message and identify the specific file and action step involved. Correct the action or the input files before running the batch again.
Exercise
Why is a separate destination folder safer than saving over the source files?
Show answer
It preserves the originals, makes the results easy to compare, and lets you rerun the batch without first restoring the source files.