Sub topic 3
Controlling sources, destinations, overrides and file names
This chapter assumes you have recorded a simple action and can find it in the Actions panel. You should also know how to save and open files in Photoshop.
Batch sources, destinations and overrides
The Batch command runs one action on many files. Four settings control the run:
- Source picks where files come from: a folder, the open documents, or an import device.
- Destination picks where results go: None, Save and Close, or a folder you choose.
- Override Action "Open" Commands ignores file-opening steps recorded in the action and uses the batch's own file.
- File Naming builds output names from parts such as the document name, a serial number, or extension.
Override settings replace the action's own Save As steps. If your action saves a file, set Destination to a folder, or the output lands wherever the action says.
Droplets
A droplet is a small application that runs an action on any file you drop onto it. Create one with File > Automate > Create Droplet. It uses the same destination and naming settings as Batch.
Quick conversions with the Image Processor
The Image Processor converts and resizes a folder without a recorded action. Choose File > Scripts > Image Processor, then set the input folder, output folder, file types, and an optional resize. Use it for simple format changes. Use an action when you need custom steps.
Branching with conditional actions
A conditional action checks a document property, such as width, and runs one set of steps or another. Insert it from the Actions panel menu using Insert Conditional. Keep conditions simple, because each branch must work on every file in the batch.
Troubleshooting failed or stalled batches
| Symptom | Likely cause | Fix |
|---|---|---|
| Run stops on one file | A recorded layer name does not exist in that file | Use a layer name that every file has, or make the step optional |
| Run freezes | A dialog is waiting for input | Turn on the dialog's modal control in the action |
| Files are skipped | The file type is not supported by the save format | Choose a compatible format in the destination settings |
Going further: calling actions from ExtendScript
You can play an action from a script. This is useful when a folder workflow needs logic that actions cannot express.
#target photoshop
// Run one existing action on the active document.
// The first argument is the action name, the second is the action set name.
app.doAction("Resize for Web", "My Actions");> Note: Scripts run the action on the active document only. Use a loop with app.open to process a folder.
Exercise
A batch saves files to the wrong folder even though the destination is set. Which setting should you check first?
Show answer
Check whether the recorded action contains its own Save As step. If it does, the action overrides the batch destination unless Override Action "Save As" Commands is on.