fb

Home » Blog » Photography Workflow Automation: Photoshop Actions, Scripts and InDesign GREP

Photography Workflow Automation: Photoshop Actions, Scripts and InDesign GREP

If you regularly work with large numbers of photographs, create publications, produce marketing material or carry out repetitive editing tasks, automation can save an enormous amount of time.

Automation can be as simple as recording a Photoshop Action to perform the same sequence of edits repeatedly, or as advanced as writing scripts that process images, analyse data or make complex changes to an InDesign document.




For photographers and creative professionals, the important thing isn’t necessarily learning to code.

It’s understanding what can be automated and recognising when learning a new tool will save more time than it takes to master it.

Why automate repetitive photography tasks?

Most creative software already contains some form of automation.

Spell-checking is a simple example. You ask the software to perform a task that would otherwise require you to check every word manually.

Photoshop takes this considerably further with Actions and Scripts.

If you find yourself performing exactly the same sequence of operations again and again, there is a good chance that at least part of the process can be automated.

A useful rule of thumb is:

If you have to perform the same Photoshop operation more than about ten times, consider recording an Action.

The more repetitive the task, the greater the potential saving.


Photoshop Actions: the easiest place to start

Photoshop Actions are probably the most accessible form of creative automation.

An Action records a sequence of operations so that they can subsequently be replayed.

For example, you might record an Action that:

  1. changes the image mode
  2. converts the colour profile
  3. changes the resolution
  4. flattens the image
  5. applies a particular adjustment
  6. saves the resulting file

Once recorded, the Action can be run whenever you need to perform the same sequence.

Actions are particularly useful when you’re dealing with large numbers of photographs.

A real-world publishing example

At Professional Imagemaker, contributors send photographs in a wide variety of formats, resolutions, bit depths and colour profiles.

For magazine production, those files need to be brought into a consistent format before they can be used.

Rather than carrying out every conversion manually, Photoshop Actions can perform the necessary sequence automatically.

The same principle can be applied by photographers.

Perhaps every image supplied to a client needs to be resized, sharpened, converted to a particular colour space and saved with a specific naming convention.

Instead of repeating those operations hundreds of times, create the process once and let Photoshop do the repetitive work.


Batch processing makes Actions even more powerful

An Action becomes considerably more useful when combined with batch processing.

Rather than opening and editing every photograph individually, you can tell Photoshop to apply the same Action to an entire folder of images.

This is ideal for repetitive jobs such as:

  • resizing images
  • converting file formats
  • changing colour profiles
  • applying standard sharpening
  • adding a watermark
  • preparing images for web use
  • preparing images for print
  • creating smaller proof files
  • applying standard metadata or processing steps

The key is to distinguish between creative decisions and mechanical operations.

You probably don’t want software making every artistic decision for you.

But if a task is predictable and repetitive, there’s little benefit in doing it manually hundreds of times.


Photoshop Scripts take automation further

Actions are excellent for recording a sequence of Photoshop operations.

Scripts can go considerably further.

Photoshop supports scripting that can interact with documents, layers, selections, files and other elements of the application.

Scripts are particularly useful when the task involves logic or calculations rather than simply replaying a fixed sequence of commands.

For example, a script might:

  • examine a document
  • create or rename layers
  • process multiple files
  • analyse image information
  • create selections
  • generate reports
  • perform calculations
  • make decisions based on the contents of a document

This is where automation starts to become genuinely powerful.


An example of a specialist Photoshop script

One of the most useful scripts used in our publishing workflow was designed to assess the accuracy of colour reproduction.

A colour chart could be photographed or scanned and then analysed automatically.

The script identified the chart’s patches and compared the reproduced colours against known reference values, producing detailed information about the accuracy of the reproduction.

A task that would have been extraordinarily time-consuming to perform manually could instead be completed in a matter of seconds.

This is a perfect example of where scripting earns its keep.

The point isn’t that every photographer needs to learn JavaScript.

It’s that a repetitive technical process can sometimes be turned into a single automated operation.


What is GREP?

This is where things get slightly more technical.

GREP is commonly associated with searching text using regular expressions — patterns that allow software to find particular combinations of characters rather than simply searching for an exact word.

In creative software such as Adobe InDesign, GREP can be extremely useful for finding and changing text based on patterns.

That might sound intimidating, but you don’t necessarily need to understand programming to benefit from it.

You simply need to understand what the pattern can identify.


Why GREP is useful in InDesign

Imagine you’ve produced a 100-page document and suddenly discover that every bullet point needs changing.

You could work through the document manually.

Or you could use an appropriate GREP search to identify every bullet and change them in one operation.

The same principle can be used to find particular patterns within large documents.

For example, you might want to identify:

  • dates
  • telephone numbers
  • particular punctuation
  • repeated text patterns
  • numbers
  • words following a particular pattern
  • specific formatting structures

Once you’ve identified the relevant pattern, InDesign can apply a formatting change to every matching occurrence.

That’s where GREP becomes extremely powerful.


GREP isn’t just about finding words

Normal search is designed primarily around language.

If you search for the word:

photography

the software looks for that particular sequence of letters.

GREP can instead search for a pattern.

This distinction is important.

You can search for things that follow a particular structure even if you don’t know exactly what the text will say.

For example, a regular expression can identify strings of numbers, particular combinations of characters or text that occurs in a particular position.

This makes GREP particularly useful when working on long publications.


GREP Styles

One particularly powerful InDesign feature is GREP Styles.

Rather than manually formatting every occurrence of a particular type of text, you can create a character style and tell InDesign to apply it automatically whenever the text matches a particular GREP pattern.

For example, you could automatically format:

  • product codes
  • reference numbers
  • dates
  • measurements
  • specific types of text
  • recurring terminology

Once established, the formatting happens automatically as the document changes.

This is a good example of the wider principle behind automation:

Do the work once, then make the computer repeat it.


InDesign scripts

InDesign includes a number of useful scripting capabilities that can automate repetitive publishing tasks.

One particularly useful example is creating image catalogues or contact sheets.

A catalogue script can place large numbers of photographs into a document and, depending on the workflow, add information such as:

  • file names
  • captions
  • metadata
  • camera information
  • image numbers

This can be extremely useful for photographers producing proof sheets or catalogues for clients.

Instead of manually creating a page, placing an image, typing its filename and repeating the process hundreds of times, the computer can perform the repetitive work.


Data Merge

InDesign’s Data Merge functionality is another example of automation.

If you have a spreadsheet or structured dataset containing information such as names, addresses, product details or other variables, that information can be combined with an InDesign template.

This is useful for producing documents where the design remains consistent but the content changes.

For photographers and creative businesses, applications might include:

  • personalised marketing material
  • certificates
  • price lists
  • event documents
  • catalogues
  • promotional cards
  • client information sheets

Again, the principle is simple:

Create the template once and let the software handle the repetition.


Making simple scripts more useful

You don’t necessarily have to be a programmer to make small changes to an existing script.

Some scripts use simple variables that can be changed in a text editor.

For example, a script that gradually reduces the size of text might contain starting and ending font-size values.

Changing those values can alter the effect without having to understand every line of the underlying code.

This is often a much better way to approach scripting than attempting to write a complex program from scratch.

Find something that already does most of what you need, understand the relevant settings and make small, controlled changes.


What about AI and scripting?

One significant change since many of these techniques were first developed is the arrival of generative AI.

You no longer necessarily need to know how to write an entire script before you can experiment with automation.

An AI assistant can often help translate a plain-English description of a task into example code.

For instance, you might describe a workflow such as:

“Find every image in this folder, resize it to fit within these dimensions, convert it to this colour profile and save a copy using the original filename.”

AI may be able to generate a starting point for the script.

However, this doesn’t mean you should blindly run code produced by an AI system.

You still need to understand what the script is supposed to do, test it carefully and make sure you have backups.

A single mistake can affect hundreds of files very quickly.


Automation beyond Adobe

Automation isn’t limited to Photoshop and InDesign.

Other creative applications have their own approaches.

Affinity Photo, for example, supports recorded macros that can automate repetitive editing operations.

The terminology may differ between applications — Actions, Scripts, Macros, Presets or Workflows — but the underlying idea is the same.

Record or define a process once, then reuse it.

The availability of automation should therefore be one of the things you consider when choosing software for a particular workflow.


When is automation worth learning?

This is perhaps the most important question.

Automation isn’t automatically worthwhile.

If you only need to perform a task twice, learning how to automate it could take longer than doing it manually.

If you’re going to perform it 500 times, however, the calculation changes dramatically.

Consider three things:

1. How often do you perform the task?

The more frequently you repeat it, the greater the potential benefit.

2. How long does each repetition take?

Saving ten seconds per image becomes significant when processing thousands of images.

3. How complicated is the automation?

A five-minute Action is an obvious win.

Spending three days learning to write a complex script to save yourself ten minutes a month probably isn’t.


Start with simple automation

One of the biggest mistakes is trying to automate something complicated before understanding the basics.

Start with a non-critical task.

Record a simple Photoshop Action.

Try batch processing a copy of a folder.

Experiment with an InDesign GREP search.

Create a simple Data Merge document.

Only then move towards scripting.

And always work on copies of important files while you’re learning.

Automation is extremely good at doing exactly what you’ve told it to do — including doing the wrong thing several hundred times.


Don’t learn automation under pressure

There’s another lesson worth remembering.

Don’t attempt to learn a new scripting system five minutes before a deadline.

If your boss is standing behind you asking when the finished document will be ready, that’s probably not the ideal time to start experimenting with GREP.

Set aside some quiet time.

Have a coffee.

Try the technique on a copy of a non-critical project.

Once you’ve established that it works, save the Action, script or workflow so that you can use it when the real job arrives.


Automation can become a competitive advantage

For photographers and creative businesses, time is money.

If you can reduce the amount of time spent on repetitive technical work, you have more time available for photography, clients, marketing and creative development.

The most productive users of software aren’t necessarily the people who know every feature.

They’re often the people who understand which features are worth learning.

You don’t need to become a programmer.

You don’t need to understand every regular expression.

You don’t need hundreds of Photoshop Actions.

Instead, start noticing the jobs you perform repeatedly.

If you find yourself thinking:

“I’ve done this a hundred times.”

that’s probably a good indication that it’s time to investigate automation.

Final thoughts

Automation can initially look like a world of technical jargon, scripts and obscure commands.

But you don’t need to understand all of it.

Start with something simple.

Record an Action.

Try batch processing.

Explore an InDesign script.

Experiment with GREP.

Learn what a regular expression can do.

Then build from there.

The goal isn’t to become a programmer.

The goal is to make your creative workflow faster, more consistent and less tedious.

And once you’ve experienced the satisfaction of asking your computer to perform a job that previously took you an entire afternoon, you may find yourself looking for the next task you can automate.

Mike McNamee
ABOUT THE CONTRIBUTOR

Mike McNamee

Editor, Professional Imagemaker & digital imaging specialist

Mike McNamee is a Graduate Mechanical Engineer, Fellow of both the Royal Photographic Society and the British Professional Photographers Association, and an internationally recognised specialist in photography, digital imaging and imaging technology. His 25 years of industrial engineering experience gives him a particularly strong technical understanding of the photographic process.

Mike has won numerous national and international awards and has lectured throughout Europe and America on specialised photographic and imaging techniques. He has authored books, scientific papers and patents, developed digital imaging training courses and taught photography and digital imaging. He is formely Editor of Professional Imagemaker, the magazine of The Society of Photographers, with particular expertise in colour management, digital workflow and the practical application of imaging technology.

PortraitPro

Comments are closed.