Photoshop Automation

Photoshop includes multiple ways to automate tasks, but the tricky part can be knowing what they are and how to use them. Here’s a brief introduction to actions, scripts, and data-driven graphics to speed up the repetitious parts of your Photoshop workflow and save more time for being creative.

Using Actions

An action is a recording of one or more steps that you can play to apply again as a sequence of steps to other images or batches of images. There are several ways to use actions, including:

  • Built-in actions
  • Recording your own actions
  • Conditional actions
  • Third-party actions

Built-in Actions

When you open the Actions panel (Window > Actions), it contains a Default folder that includes some starter actions.

Each name describes its action. Select an action and then click the Play button at the bottom of the panel to run it.

You can find more actions that come with Photoshop by going to the Actions panel menu.

Recording Your Own Actions

When you need a custom action to perform a repetitive task, you can record an action yourself. Here are the basic steps.

  1. Make a new set for your custom actions by clicking the folder icon at the bottom of the Actions panel.
  2. Make a new action by clicking the new action icon to the right of the folder icon. Name your action and assign it a function key if you like.
  3. Perform the steps you want to record.
  4. Stop the recording.

For a deeper look at recording your own actions, see Everyday Actions for Photoshop.

Creating Conditional Actions

When you set up actions to perform various steps on different types of images, you can make a third action as a conditional action to analyze the image and determine which of the actions gets used.

  1. Make a new action.
  2. Go to the Actions panel menu and select Insert Conditional…
  3. In the Conditional Action dialog, set the criteria for If Current, set the action to play if the image meets the criteria, and set the alternative action to play if the image does not meet the criteria.
  4. Stop recording if you haven’t already. (Recording isn’t necessary for inserting a condition.)

Third-party Actions

Third-party Photoshop actions are available through the Adobe Exchange. Filter by popular tags and sort by price. When you find one you want to try, acquire it and follow the instructions to access it. From the Actions panel menu, select Load Actions… and navigate to it.

Scripts

You don’t have to be able to write a scripts in order to use them. Photoshop has some built-in scripts (File > Scripts) including this one to delete all empty layers.

Adobe also curates third-party scripts that you can use. Some of these scripts can help you create cool effects. For example, go back to the Adobe Exchange and search for Comic Kit and download it.

1. Draw out guides to the center of the canvas.

2. Make sure snap to Guides is enabled.

3. With the Pen Tool, draw a path from the center to beyond a corner.

4. Cut the path.

5. Make a new layer and paste the path (the pasted path appears as a vector mask).

6. Choose Edit > Fill. For Contents, select Pattern. It doesn’t matter which pattern is selected, but check Script and set it to Speed_Lines_ex.

7. Select Zoomline Sunshine 1 and adjust as desired.

8. Delete or hide the vector mask for the effect to show.

Data-driven Graphics

If the term “data-driven graphics” sounds too geeky and intimidating, just think of it as swapping out similar content in a template. For an example, we’ll take a runner’s bib and automate the creation of multiple bibs.

Before making your variables, check the rules for naming them.

Rules for Naming Variables

  • Variable names must begin with a letter, an underscore, or a colon.
  • Variable names cannot have spaces or special characters (Exceptions: underscore, colon, period, and hyphen)

Define the Variables

  1. Go to Image > Variables > Define…
  2. In the Layer dropdown menu, navigate to the Myra Ferguson layer.
  3. For the Variable Type, select Text Replacement, and name the variable runner.
  4. Select the 1080 layer, select Text Replacement, and name the variable number.
  5. Select the team layer, select Pixel Replacement, name the variable team, and select the method as As Is.

Create the Data Sets

  1. Change the dropdown menu from Define to Data Sets.
  2. Click the New Data Set button.
  3. Select the team variable, click Select File…, and navigate to the team file to use.

Add Data Sets

A data set is a collection of content to swap. Make a new data set for each participant.

  1. Click the New Data Set button.
  2. Select a variable name.
  3. Change the content for Value.
  4. Check Preview to see the updates.

Import Data from an External Source:

  1. After the variables are defined, create a spreadsheet with a column for each variable.
  2. Make the data either text or a path to a file to replace. (TIP: If you place these files in the same folder as the .csv file, then you only need to add the name of the file.)
  3. Save the data as a .csv file.
  4. Click Import… and navigate to the .csv file. If you don’t see the file, make sure the .csv filetype is selected.
  5. Keep Encoding set to Automatic and check Use First Column For Data Set Names. Check Replace Existing Data Sets if you don’t want to keep previously entered data.
  6. Click the Data Set arrows to preview each set.

Output Data-driven Graphics

After defining variables, creating data sets, and clicking OK, the template looks like it did when we started. To create all of the different bibs, we’ll need to export them.

  1. Go to File > Export > Data Sets as Files…
  2. Select the output folder.
  3. Select either All Data Sets or an individual Data Set.
  4. Set the File Naming, File Extension, and Compatibility.
Myra Ferguson creates digital media training and multimedia experiences as an author and freelance designer/developer, and teaches creative software and design at the University of Colorado Boulder. After writing How to Cheat in Adobe Animate CC, Myra began authoring video courses for Pluralsight.
>
Notice: We use cookies on our websites to give you a great online experience. If you keep browsing, we'll assume you're ok with this. For more information, see our privacy policy. By closing this banner, you agree to the use of cookies.I AGREENo