Sub topic 7
What an Action Cannot Record
Assume you already know how to record and play a basic Photoshop action, use layers, and save files in common formats. This chapter focuses on the boundary between a recorded action and a flexible automation script.
A Photoshop action records many commands and their settings. It can replay steps such as creating a layer, applying a filter, changing a blend mode, or opening a dialog with recorded values. It does not record every decision you make while working. The important question is whether Photoshop can store a repeatable command, rather than merely observe an interaction.
What recording leaves out
Actions commonly fail to capture these kinds of work:
- Judgment calls: An action cannot decide whether a portrait needs more contrast or whether a blemish is worth removing.
- Changing selections: A recorded selection usually refers to coordinates, a saved channel, or a fixed command. It does not automatically understand a new subject in every image.
- Freehand gestures: Painting, brushing, dragging, and transforming by eye can record poorly or replay at the wrong location. A recorded brush stroke may depend on document size and position.
- External information: An action cannot normally read a spreadsheet, query a database, inspect a web page, or choose a filename from changing business data.
- Unsupported application state: Some panel operations, plug-ins, and newer features do not expose recordable commands. The action may omit the step or show a warning during playback.
- Flexible repetition: An action does not naturally loop through every layer, file, or object. Batch processing can repeat an action across files, but it does not add general programming logic.
- Conditional decisions: A standard action does not automatically branch because one image is RGB and another is grayscale, or because one document contains a particular layer.
The action can also record a value that is technically valid but unsuitable for another image. For example, a fixed 200-pixel selection, a fixed canvas position, or a filter radius chosen for a 4000-pixel image may produce poor results on a small image.
Why playback becomes fragile
Playback follows the recorded sequence. It expects required layers, channels, paths, and document properties to exist in a usable form. If a step says “select Layer 1” but the current document has no layer with that name, Photoshop may stop, skip the step, or produce an incorrect result.
A command can also be blocked by a dialog. For example, a missing profile warning, a save confirmation, or a filter warning can wait for input while a batch appears frozen. Turning off display dialogs can help for some automated workflows, but it does not make an unrecordable operation recordable.
Choosing a workaround
Use the simplest tool that matches the missing capability.
| Limitation | Practical workaround |
|---|---|
| The same steps must run on many files | Use Batch or a droplet |
| Files need resizing and conversion only | Use the Image Processor |
| The workflow needs if/then decisions | Use conditional actions or a script |
| The workflow reads changing filenames or data | Use ExtendScript or another supported automation method |
| A step needs human judgment | Insert a Stop and let the operator continue |
| A plug-in step does not record | Run it manually or find a recordable equivalent |
The goal is not to force every workflow into one action. Keep repeatable, deterministic operations in actions. Move file handling, decisions, loops, and data access to Batch, Image Processor, conditional actions, or scripting.
Exercise
Exercise
An action selects a layer named “Logo” and then exports the document. It works on the original file but fails on a folder of unrelated files. What limitation is involved, and what should you change?
Show answer
The action depends on a specific document structure. Add a reliable preparation step, use a conditional action or script to check for the layer, or restrict the batch to files that contain the required layer.