Sub topic 4
Organizing, saving and sharing action sets
This chapter assumes you can record a basic action and play it from the Actions panel. It covers how actions are grouped into sets, how sets are stored on disk, and what to check before you hand a set to someone else. These habits matter once you have more than a handful of actions, because later chapters (Batch, droplets and scripting) all find an action by its set name and action name.
What a set is
An action set is a container in the Actions panel that holds one or more actions. It appears as a folder icon. Photoshop ships with a set called Default Actions, and every action you record must live inside some set.
A set is also the unit of storage. You can save, load and delete whole sets, but Photoshop has no command to save a single action on its own. If you want to share one action, you first put it in a set of its own.
Creating and arranging sets
Create a set before you record, so new actions land where you want them.
- Click the Create New Set button (the folder icon at the bottom of the panel), or choose New Set from the panel menu.
- Name the set and click OK. The new set is selected.
- Click Create New Action while the set is selected. The action is recorded into that set.
If you record with a different set selected, the action goes into that set. This is the most common cause of "where did my action go?" Look in the set that was highlighted when you started recording.
You can rearrange things by dragging:
- Drag an action onto another set's folder to move it there.
- Hold Alt (Windows) or Option (Mac) while dragging to copy it instead of moving it.
- Drag an action up or down within a set to change its order. Order only matters for display and for Button Mode, since each action runs on its own.
- Drag a set up or down to reorder sets.
To rename a set or action, double-click its name. To duplicate an action, choose Duplicate from the panel menu. Duplicating before a risky edit gives you a backup you can delete later.
A naming scheme that survives growth
Names are not decoration. The Batch dialog asks for a set and an action from two menus. A script calls app.doAction("Resize for Web", "My Actions"). In both cases the name is the identifier.
#target photoshop
// The first argument is the action name, the second is the set name.
// If either name changes, this call fails.
app.doAction("Resize for Web", "My Actions");Photoshop does not stop you from creating two actions with the same name in the same set. When that happens, a name lookup is ambiguous, so keep names unique.
A workable convention:
- Name sets by purpose or client, such as
Web ExportorClient - Acme Print. - Name actions by what they do, such as
Resize 1600 wide, notAction 1. - Put a version in the name only when you must keep old and new behavior side by side, such as
Sharpen for web v2. - Avoid renaming a set or action that scripts or droplets already depend on. Duplicate it and rename the copy.
Panel menu commands for sets
These commands in the Actions panel menu handle storage.
| Command | What it does | Typical use |
|---|---|---|
| Save Actions | Writes the selected set to an `.atn` file | Backup or sharing |
| Load Actions | Adds the sets in an `.atn` file to the panel | Installing a set from a colleague |
| Replace Actions | Removes all current sets, then loads an `.atn` file | Switching to a clean, known state |
| Reset Actions | Restores the default set, with an option to append instead of replace | Recovering the stock actions |
| Clear All Actions | Empties the panel | Starting from nothing |
Replace, Reset and Clear can remove sets that exist only in your panel. Save everything you care about before using any of them.
Saving a set to a file
- Click the set's folder in the panel so the whole set is selected. Selecting an action inside it is not enough.
- Open the panel menu and choose Save Actions.
- Choose a location and a file name. Photoshop adds the
.atnextension.
The file name does not have to match the set name. The set name inside the file is what appears in the panel when someone loads it. Name the file after the set anyway, so you can tell what it contains from a folder listing.
Keep your .atn files in a folder that is backed up or under version control, not only inside Photoshop's own folders. A common arrangement is one folder per project or client, with the .atn files next to the sample images used to test them.
Where Photoshop keeps your sets
Photoshop remembers the sets in your panel between sessions in a preferences file. It is not reading your .atn files each time it starts. This has two consequences.
- If preferences are reset or become corrupt, the panel can return to its defaults and your custom sets disappear from the panel. Photoshop does not delete your saved
.atnfiles, which is why exporting them matters. - Editing an
.atnfile on disk does not change what is in the panel. You must load the file again, and loading adds a second copy of the set unless you delete the old one first or use Replace Actions.
Photoshop also has a Presets folder for actions. A set saved there appears under the Actions panel menu list of preset sets, and is easy to find again. Saving to that location can require administrator rights on a shared machine, so a project folder is often more practical.
Loading and installing sets
You can load a set in three ways:
- Choose Load Actions from the panel menu and pick the
.atnfile. - Double-click the
.atnfile in your operating system's file browser. Photoshop opens, if needed, and loads the set. - Drag the file onto the Photoshop window.
After loading, check that the set appears and expand it. Then play it once on a test image before trusting it in a batch.
Sharing sets with other people
An .atn file stores the steps and their settings. It does not store everything those steps depend on. Before you send a set, check each item below.
| Dependency | What goes wrong on the other machine | What to do |
|---|---|---|
| Fonts used in a Type step | Missing-font warning or a substitute font | List the fonts, or send them if the license allows |
| Brushes, patterns, gradients, swatches | The step fails or uses a different preset | Send the preset files, or avoid presets in shared actions |
| Hard-coded save or open paths | The folder does not exist, so the step errors | Use Batch destination settings instead of recording a path |
| Plug-ins and third-party filters | The step cannot run | Say which plug-ins are required |
| Other actions called with Play Action | The called action is not found | Put all called actions in the same set |
| Newer Photoshop features | An older version cannot play the step | State the minimum version |
| Color profile and mode assumptions | Different results, or a profile warning | Document the expected mode and profile |
Two rules cut most of this risk. Keep every action a shared set needs inside that one set. Avoid recording a Save As step with a literal folder path, because the folder rarely exists on someone else's computer. Chapters on Batch and on portable actions explain how to handle saving and sizing without literal paths.
Documenting a set
A short note travels well with the file. Include:
- The minimum Photoshop version.
- The expected starting state, such as RGB, 8 bits per channel, one flattened layer.
- Whether the action stops for input, and where.
- Any required fonts, presets or plug-ins.
- The result, such as "resizes to 1600 px wide and sharpens".
You can also put some of this in the action itself. A name like Resize 1600 wide (RGB 8-bit) states the expectation where the user will see it.
Common mistakes
- Saving the wrong thing. Saving while an action is selected can still produce a file, but you may not have the set you intended. Select the set folder first, then confirm by loading the file on a test machine or after clearing the panel.
- Loading the same file twice. You then have two sets with the same name, and a batch may run the wrong copy. Delete the duplicate.
- Editing the panel but not the file. Changes you make after saving exist only in the panel. Save again to the same file name after every meaningful edit.
- Mixing unrelated actions in one set. A set that holds ten unrelated actions is hard to share, because the recipient gets everything. Prefer small, purposeful sets.
Exercise
A colleague loads your .atn file and reports that the action stops with an error on the last step, which saves the file to D:\Exports. Your own machine runs it fine. What is the cause, and how should you change the set before sending it again?
Show answer
The recorded Save As step contains a literal path, and the folder D:\Exports does not exist on the colleague's computer. Remove that step from the action, or keep a plain save but rely on the Batch command's destination setting to choose where files go. Then test the set on a clean machine or a different account, save it to the .atn file again with the set selected, and resend it.
Exercise
You have three actions in the set My Actions, and you want to send only one of them. How do you do it, given that Photoshop saves whole sets only?
Show answer
Create a new set, then drag (or Alt/Option-drag to copy) the one action into it. Select the new set's folder, choose Save Actions from the panel menu, and send that file. Make sure any other action the first one calls with Play Action is also in the new set.