Skip to content
Tutorials Center
My learning

Topics

Lesson 28 of 37 ยท Automation and Export

Actions: Record and Replay Photoshop Steps

Record repeatable Photoshop work as actions, add stops and conditions, edit and share action sets, and understand what an action does step by step.

If you perform the same sequence of steps on many images, you should not do it by hand. An action is a recorded list of commands that Photoshop can replay on one image or hundreds. Actions are the simplest form of automation: no coding, just recording.

The Actions panel

Open Window > Actions (Alt+F9). The panel shows sets (folders), actions inside them, and the steps of each action when you expand it. Buttons at the bottom: Stop, Record, Play, Create new set, Create new action, Delete. Switch to Button Mode in the panel menu for large one-click buttons.

Photoshop ships with default actions (vignettes, frames, text effects). They are useful as examples to open and study.

Recording an action

  1. Open a representative image.
  2. In the Actions panel, click Create new action. Give it a clear name (for example "Web Resize 1600"), choose a set, and optionally assign a Function key (such as F2 with Shift) and a Color.
  3. Click Record. The dot turns red.
  4. Perform the steps: Image > Image Size to 1600 px wide, Filter > Sharpen > Unsharp Mask, File > Save As and so on.
  5. Click Stop.

Photoshop records menu commands, most tool operations (such as selections made with a marquee, but not the strokes of a brush) and adjustment settings. Not everything can be recorded. The panel will not record, for example, the movement of a brush stroke, and the Move tool is unreliable. If something is not recorded, add it with Insert Menu Item from the panel menu.

Practical rules for reliable actions

  • Start every action with a step that sets the starting state, such as Layer > Flatten Image or duplicating the background layer.
  • Prefer relative commands: to resize to a width, use Image Size with the Resample setting, not Canvas Size to a hard-coded value.
  • Name layers explicitly if later steps refer to them by name.
  • Avoid steps that depend on a specific document size, such as selecting a marquee by pixel positions, unless all images are identical.
  • Test the action on a copy of an image before running it on a folder.

Editing an action

  • Toggle a step with the check mark at its left. A checked step runs; an unchecked one is skipped.
  • Toggle the dialog icon (the small box) next to a step to make Photoshop stop and show the dialog for that command at playback, so you can type a different value each time. A red dialog icon means some, not all, steps in the action pause.
  • Drag steps up and down to reorder, or drag a step with Alt held to duplicate.
  • Double-click a step to re-record its settings.
  • Click the step above the position you want, then record new commands to insert steps.

Use Insert Stop (panel menu) to show a message and let the user do something manually, such as typing a filename or painting a mask, before the action continues. Tick Allow Continue to give them a Continue button.

Playing and sharing

  • Select the action and click Play, or use its function key.
  • Play Only Selected Command (Ctrl+click the Play button) runs a single step.
  • Playback options under the panel menu let you play at an adjustable speed or with pauses, helpful for debugging.
  • Use Save Actions to write a set to an .atn file and Load Actions to bring in someone else's.

A conditional step is available through Insert Conditional, which checks something (document mode, orientation, whether a layer exists) and then runs a chosen action. Landscape images and portrait images can each resize to a different maximum edge this way.

Mini simulation: an action as a list of steps

The next programs are stand-ins. They do not run Photoshop; they show that an action is nothing more than an ordered list of named steps applied to a document, with steps you can switch off and a history you can inspect.

Python Stand-in: an action is an ordered list of steps

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Switching the check mark of the third step off is the same as unticking a step in the real panel: it stays in the action, but playback skips it.

Python Stand-in: a conditional step chooses by orientation

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Actions versus other automation

Tool Best for
Action A repeatable sequence on one or many files
Batch Running one action over a folder
Droplet A small app that runs an action when you drop files on it
Image Processor Quickly saving a folder as JPG/PSD/TIFF at a given size
Scripts (JavaScript) Logic: loops, file naming, conditions, reading data

The next lesson shows how to apply them.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is the shortcut that opens the Actions panel?

    Alt+F9 (Option+F9 on Mac) shows or hides the Actions panel. You can also use Window > Actions.
  2. 2. What does the dialog icon next to a step do?

    With the dialog toggle on, Photoshop opens the command's dialog during playback so you can enter a different value.
  3. 3. Which is NOT reliably captured by recording?

    Brush stroke positions are not recorded. Menu commands and their settings are.
  4. 4. How do you share an action with a colleague?

    Action sets are saved as .atn files that can be loaded on any machine.

Summary

  • An action records menu commands as steps you can toggle, reorder and edit.
  • Record on a representative file, start from a clear state, and test on copies.
  • Dialog toggles, stops and conditionals make actions flexible.
  • Save and load action sets as .atn files.

Next: Batch Processing, Droplets and Scripting