Sub topic 7
What an Action Cannot Record
This chapter assumes you can record and play a basic action, and that you know the Actions panel, its sets, and how an action is stored as a list of steps. You should also be comfortable with the Layers, Paths and History panels.
An action is a list of commands that Photoshop replays. It is not a screen recording. Photoshop writes a step only when something it recognizes as a command happens. Anything else you do while recording is performed on the image but never saved, so the action silently leaves it out. Knowing where that boundary lies saves you from actions that work once and fail on every later image.
How recording decides what to keep
Photoshop records menu commands, many dialog settings, and operations in some panels. It does not record every mouse movement. During recording, each recorded step appears in the Actions panel as a new row. If you do something and no row appears, that step was not recorded.
This gives you a simple habit: after every unusual step, glance at the panel. A missing row at recording time is much cheaper to fix than a wrong result in the middle of a 500-file batch.
The main categories of unrecordable work
Painting and retouching tools
Brush strokes are the standard example. The Brush, Pencil, Eraser, Clone Stamp, Healing tools, Blur, Sharpen, Smudge, Dodge, Burn and Sponge tools all work by dragging across pixels. A drag has no fixed meaning that can apply to a different image, so Photoshop does not store it. The same goes for changes to these tools' options, such as brush size or opacity.
Tools that define a clear geometric result behave differently. The Marquee, Lasso, Magic Wand, Crop, Gradient, Paint Bucket, Shape and Type tools can be recorded. For the tools that draw with coordinates, such as Shape, Gradient and Type, turn on Allow Tool Recording in the Actions panel menu. Without it, the tool's work may be missing from the action.
View, window and preference changes
Commands that change how you see the image, not the image itself, are mostly outside what recording captures. Examples include zooming, scrolling, showing rulers or guides, switching screen modes and opening or arranging panels. Changes in Preferences are also not recorded, so an action cannot switch your default ruler units or interpolation method.
This matters because many actions silently depend on those preferences. A step recorded with rulers in pixels will behave differently on a machine set to inches if the action uses ruler-based values.
Settings that live outside commands
Some panel options are not commands. Changing the Brush Settings panel, the Character panel's defaults or a workspace layout does not become a step. If the action needs a specific font, record a Type step that sets it, or insert a stop. Do not rely on a panel having been configured beforehand.
Context the action only assumes
A recorded step often refers to something by name or by position. The action stores "select layer Background" or "fill with the foreground color", but it does not store the layer or the color. At playback Photoshop looks for what the step names. The result depends on the active layer, the foreground color and the file's state, so a step that depends on any of these can fail or give a different result.
| Operation | Recorded? | What to do instead |
|---|---|---|
| Brush, Eraser, Clone Stamp strokes | No | Insert a stop for manual work, or build the result from a path, fill or selection |
| Zoom, scroll, screen mode | No | Leave out. They do not change the image |
| Preferences changes | No | Set them yourself before running the action |
| Some menu commands (for example in View or Window) | Not by normal recording | Use Insert Menu Item |
| A saved path | Not by drawing it during recording | Use Insert Path |
| Marquee, Crop, Magic Wand selections | Yes | Check for absolute pixel values (see below) |
| Shape, Gradient, Type | Yes, with Allow Tool Recording | Check that coordinates suit every image |
| Fill with foreground color | Yes, but the color is not stored | Set the color explicitly in the action |
Recorded, but not portable
Some steps are recorded and still cause trouble. A Marquee selection is stored as pixel coordinates. If you select the rectangle from 100,100 to 900,700 on a 1000-pixel image, the same rectangle is recorded for a 4000-pixel image, where it covers a small corner. The step exists, but it is wrong for other sizes. The next chapter covers how to make actions work on any size. For now, treat any step with hard-coded numbers as suspect.
Two other steps in this group are file operations. Open records the filename. Save As records the destination folder and the name. Both are replayed literally unless the Batch command overrides them, which a later chapter explains. This is why an action recorded with a Save As step tends to overwrite one file repeatedly if you run it on a folder with the wrong settings.
Workarounds, in order of preference
Insert Menu Item
Some commands do not record during normal use. In the Actions panel menu, choose Insert Menu Item, then choose the command from Photoshop's menu bar. Photoshop adds a step that calls the command by name. At playback the command runs, and if it opens a dialog, the dialog appears and waits for you. Use it for a command that is available but would not be recorded. It does not turn a drag-based tool into a repeatable step.
Insert Path
A path drawn with the Pen tool is not captured as you draw it. Select the path in the Paths panel, then choose Insert Path from the Actions panel menu. Photoshop stores the path with the action. When the action plays, it adds that path to the image. This is useful for a fixed outline such as a logo shape or a frame, but a fixed path does not scale itself to images of different size.
Once a path exists, many path commands, such as making a selection from the path, can be recorded in the usual way. Stroking a path with a brush is a common way to get a brush mark into an action. Test it by playing the action, because results depend on the active layer and tool settings.
Insert Stop
When no step can capture what you need, add an Insert Stop. The action pauses and shows a message you write, such as "Paint out the blemishes, then press Continue". Tick Allow Continue so you can resume. A stop makes the action interactive, so it cannot run unattended. It is fine for a single image and a problem for a Batch run.
Build the effect from other commands
Often the best answer is to avoid the unrecordable step. Instead of painting a vignette with a soft brush, use a selection, feather it, fill it and adjust the layer opacity. Each of those is a recordable command. Look for a command-based route first, because it keeps the action unattended.
Common errors
- Assuming the step was recorded. The most frequent mistake is not looking at the panel. Check for a new row after each action.
- Recording with the wrong active layer. A step that says "select layer 1" fails on images that have no such layer. Select layers by position or name in a way that suits all files.
- Leaving a stop in a Batch. A stop pauses the run on every file. Remove stops before a long unattended run, or accept that you must click through each one.
- Depending on the foreground color. A Fill step records that it uses the foreground color, not which color it was. Set the color in a recorded step first.
- Relying on a preference. If an action depends on units, interpolation or another preference, document that requirement, because the action cannot enforce it.
Exercise
You record an action that includes a Brush tool stroke to paint out a spot, then a Save As step. You play it on another image and the spot is still there. Why, and what are two ways to handle the retouching?
Show answer
The brush stroke is not recorded, so no step for it appears in the Actions panel and the action skips it. The rest of the action runs normally, so nothing reports a problem. You can add an Insert Stop with a message so a person paints the spot by hand before continuing, which makes the action interactive. Or you can rebuild the effect from recordable commands, such as a selection, a fill and a layer adjustment, which keeps the action unattended.
Exercise
A colleague's action selects a rectangle with the Rectangular Marquee tool and crops to it. It works on the original 1200-pixel-wide image but crops the wrong area on a 4800-pixel-wide image. The step is recorded. What is the problem?
Show answer
The Marquee selection is stored as fixed pixel coordinates, so it applies the same absolute rectangle to every image. On a larger image that rectangle covers only a small part of the picture. The step is recorded but not portable. Make the action use values that depend on the image size, as described in the next chapter, or crop with a command that works from the canvas size.
Exercise
You need a company logo outline drawn with the Pen tool to appear on every processed image, and you cannot get the Pen strokes to record. Which Actions panel feature do you use, and what steps do you follow?
Show answer
Use Insert Path. Draw the path and select it in the Paths panel, then choose Insert Path from the Actions panel menu while recording. Photoshop stores the path with the action and adds it to each image when the action plays. Remember that the path is a fixed shape and does not resize itself for images of different dimensions.