The first time I genuinely understood the difference between a Photoshop action and a Photoshop script, I was sitting in a studio at 11 PM having just manually cropped and resized the same image 200 times. Same canvas size, same anchor point, same output folder, 200 times. Eight hours. Gone.
I had actions. I used them constantly. But this particular job had a wrinkle: each file needed a filename baked into its metadata based on a spreadsheet column, and actions simply cannot read a spreadsheet. That night I opened a JavaScript reference document for the first time, and I have not manually repeated a task like that since.
What Actions Can and Cannot Do
Photoshop actions record discrete operations and replay them. They are deterministic and linear, which is exactly what makes them useful and exactly what makes them limited. An action will apply Curves adjustment layer with the same settings every time, run a sharpening filter, flatten, export. Perfect for consistent, context-free steps.
The limitation is conditional logic. Actions cannot ask: is this image wider than it is tall? Does this filename contain the word “hero”? Is the layer count above three? They record what you do, not decisions about what to do. The moment your workflow needs to branch, check a value, or pull information from outside the file itself, an action hits a wall.
This is not a flaw in actions. It is just the ceiling of what a macro-style recorder can be.
Where Scripts Take Over
Photoshop supports JavaScript, AppleScript, and VBScript for automation, with JavaScript being the cross-platform option that actually ages well. Through the scripting interface, you get access to the full Photoshop object model: documents, layers, channels, history states, preferences, the application itself. You can open files, make decisions based on pixel dimensions, write to the filesystem, read external text files, and loop through folders of thousands of images.
The practical entry point is ExtendScript, Adobe’s extended JavaScript environment. It is old, runs on an engine from roughly 2007, and the documentation requires patience. But it works, it ships with Photoshop, and the syntax is plain JavaScript close enough that any web developer can get oriented in an afternoon.
A script that opened my eyes early was a simple 40-line file that read a plain text list of crop dimensions, opened each image in a folder, cropped to the appropriate size based on a naming convention in the filename, and exported to a subfolder. That replaced about three hours of manual work per job. I have run that script, or a descendant of it, hundreds of times.
Combining Scripts and Actions for Real Production Pipelines
The setup I use for most e-commerce work is a layered one. Actions handle the opinionated, visual stuff: specific sharpening recipes, color grading looks, watermark placement at exact coordinates. Scripts handle the logic, looping, and file management around those actions.
Specifically: I use app.doAction("Export Master", "Client Set") inside a script to call a named action at the right moment in a larger automated sequence. The script decides which files to process, opens them in the right order, sets variables like output path and filename suffix, and then hands off to the action for the visual processing steps. The action does not need to know anything about the file. The script handles all of that.
For a recent campaign processing 340 product images for a retail client, the total hands-on time was about 90 minutes: setup, a test run on five files, a quick visual check, then letting the full batch run. The script handled everything from reading a CSV of SKU numbers to renaming outputs in a client-specified format. Without that system, based on my pace doing it manually, the same job runs about 14 hours.
I actually track this. I keep a running spreadsheet, color-coded by job type, that logs estimated time saved per script run. The cumulative total is currently sitting at over 2,400 hours. That number represents real revenue, real weekends, real hours I spent on work that actually required my judgment instead of my patience.
The Practical Starting Point for Photographers Who Don’t Script Yet
You do not need to become a developer. You need to be comfortable with three things: a loop (for or while), a conditional (if/else), and the Photoshop scripting reference PDF, which you can find in your Photoshop installation folder or directly from Adobe’s developer documentation pages.
Start with the Script Events Manager under File > Scripts. It lets you trigger an existing script automatically when something happens, like a document being opened or saved. No manual invocation. That alone can add meaningful automation to workflows you already have.
After that, install the ExtendScript Toolkit or use Visual Studio Code with the ExtendScript debugger extension. Write a script that opens every file in a folder and adds a solid color fill layer. That is a 15-line script and it will teach you more about the Photoshop object model than an hour of documentation reading.
The community around Photoshop scripting is small but useful. The Adobe scripting forums are quiet but have deep archives. Davide Barranca’s blog has some of the most thorough ExtendScript writing available. Stack Overflow has a photoshop-scripts tag with enough solved problems to get you unstuck on most common tasks.
When to Build vs. When to Buy
Purpose-built scripts for specific workflows, things like automated compositing, content-aware batch cleanup, or complex export pipelines, can cost anywhere from $30 to $300 depending on the developer and what they’re solving. That is almost always worth it if the alternative is building from scratch and you don’t want to invest the learning time.
Where I would not pay for a script is anything that handles generic resizing, basic watermarking, or format conversion, because those solutions exist for free and are well-documented. Spend money on specificity.
The habit worth building is this: every time you catch yourself doing the same thing for the fourth time in a row, stop and decide whether that task has a logic you could write down in plain English. If it does, it can probably be automated. The question is not whether you know how to code. The question is whether you are willing to spend two hours once instead of two hours every single time.
Comments (5)
I keep coming back to this article. It's that useful.
The before and after really sells it. Incredible difference.
Shared this with my photography group. Everyone loved it.
I've been looking for exactly this kind of tutorial. Perfect timing.
Couldn't agree more. I've seen this make a huge difference in landscape work specifically.
Leave a Comment