Table des matières

Photoshop actions

Actions available in the action table of Photoshop tasks (Assembly and Transform).
Each line of the table = one action; the following columns = its parameters, in the order shown.

  • Layers inside folders are written Folder1/Folder2/MyLayer.
  • Lists marked [RegExp] accept regular expressions.
  • prof / depth = search depth in folders (99 = everything).

Layers

Action Parameters Effect
Set Text Layer Layer Path; Text (%) Changes the text of a text layer. Accepts variables.
Rename Layer RegExp; Result; depth Renames layers or folders. Prefix the RegExp with ! for a partial match (otherwise it applies to the whole name).
Show/Hide Layers List of Layers [RegExp]; true/false; prof Shows or hides layers or folders, recursively.
Remove Layers List of Layers [RegExp] Deletes the matching layers.
Remove Layers From List layer1,layer2,… Deletes the listed layers.
Remove Hidden Layers Exclusion list [RegExp] Deletes all hidden layers, except those in the list.
Remove Empty Layers – Deletes empty layers.
Set Opacity In Layers folders; opacity; prof Applies an opacity to the content of the folders found.
Bake Opacity In Layers – Bakes the opacity (and masks): the layer goes to 100% while keeping its appearance; the original opacity is added to its name if needed.

Examples

Folders

Action Parameters Effect
Rename Folder RegExp; Result; depth Renames folders.
Remove Folders List of Folders [RegExp] Deletes the folders and their content.
Remove Hidden Folders Exclusion list [RegExp] Deletes hidden folders, except those in the list.
Remove Empty Folders – Deletes empty folders.
Extract Folder Content Folder Name Replaces the folder with its content, then deletes the folder.
Show/Hide Folder Content folder name; true/false; prof Shows or hides the whole content of the folders with this name.

Document

Action Parameters Effect
Resize Document Width; Height Resizes the document.
Crop Document – Crops the document.
Export Document FileName (png/jpg) Exports a flattened image.
Check - Document Resolution comparison; width; height; mode Checks the resolution and writes the result to the Log (see below).


Example: Export Document.

Check - Document Resolution:

See also