Sub topic 2
Editing an action: toggles, modal controls and re-recording
This chapter assumes you can record a basic action in the Actions panel, that you know the Layers and Image Size commands, and that you have a folder of test images ready.
Toggles and modal controls
Each step in an action has a checkbox. Unchecking it skips that step during playback, which helps when you want to test part of an action. The dialog icon beside a step is the modal control. When it is on, playback pauses at that step and opens the command's dialog so you can change values. Turn it off to run the step with the values you recorded.
Re-recording a step
Re-record when a step has the wrong values. Select the action, choose Record Again from the Actions panel menu, and repeat the steps. Save the action set afterward so the changes persist.
Inserting stops, menu items and paths
- Insert Stop pauses playback with a message so a person can make a choice.
- Insert Menu Item records a menu command that the recorder would otherwise skip.
- Insert Path plays back a path from the Paths panel, which helps when a mouse-drawn selection will not record reliably.
What an action cannot record
Actions record most menu commands and adjustments. They record brush strokes, freehand painting and drag-based selections poorly or not at all. Use Insert Path or a menu command in their place.
Making actions work on images of any size
Fixed pixel coordinates break when the image size changes. Prefer relative choices: Select All instead of a fixed marquee, a percentage in Image Size, and Fit Image in the Image Processor. Test on a landscape file and a portrait file before you trust an action.
Running an action on a folder with Batch
Choose File > Automate > Batch. Set the Source folder, the Action and the Destination.
Batch settings to check
- Override Action "Open" Commands: lets the action open each file.
- File Naming: sets a pattern such as document name plus serial number.
- Errors: choose "Log Errors to File" so one failed file does not stop the whole run.
Exercise
An action uses a fixed marquee of 800 by 600 pixels. Why will it fail on a portrait image, and what is a better approach?
Show answer
The fixed marquee selects the same area regardless of the image's size or orientation, so it may miss the subject or cover the wrong region. Use Select All, a percentage-based Image Size step, or a relative selection instead.