Module 6 β’ Lesson 2βοΈ Advanced Actions & Conditionals
If you have done a task twice, Photoshop can do it a thousand times. Actions record your exact steps; conditionals let one Action branch on what it finds; batches run it over a folder; droplets turn it into a file you drag images onto. This is where hours become seconds.
π What You'll Learn
By the end of this lesson, you will be able to:
- Record a clean, reusable Action and re-order or re-record steps
- Insert stops, menu items, and modal pauses for input
- Add a Conditional so one Action handles landscape and portrait differently
- Batch an Action across a folder and save out automatically
- Build a droplet β a drag-and-drop executable for your workflow
β±οΈ Estimated Time: 50 minutes
π― Project: A single Action that resizes, sharpens, watermarks, and exports β branching by orientation β then batched across a whole folder.
In This Lesson
π€ The Goal: Do It Once, Run It Forever
The same 200 images to prep for the web. On the right, by hand: open, resize, sharpen, watermark, save, close β repeat until your afternoon is gone. On the left, one Action batched over the folder does all 200 while you get coffee. Drag the handle:
π§ Mental Model: Record, Branch, Batch
An Action is a recorded macro: you hit record, perform your steps once, and Photoshop stores them as a replayable list. A Conditional is an if inside that list β "if the document is landscape, play the Landscape action; otherwise the Portrait one" β so one Action copes with mixed input. A Batch points an Action at a folder and runs it on every file; a droplet saves that batch as an icon you drop files onto.
Two rules make Actions reliable. Record with the right units and relative moves (percentages, not fixed pixels tied to one image size), and remember that Actions capture what you did, not what you meant β so record on a representative file and test on odd ones.
π¬ The Actions Panel
Open Window βΈ Actions. Group related Actions into a set, hit the record button, and every eligible step you take is logged. You can drag steps to re-order, double-click a step to re-record its values, toggle a step off, or add a modal (the dialog icon) so the Action pauses for you to confirm settings on each run.
β οΈ Record relative, not absolute
An Action that crops to "1080Γ1080 from position 340,120" breaks on a differently sized image. Image Size records fixed dimensions, so use File βΈ Automate βΈ Fit Image (e.g. 2000 Γ 2000) to scale by the long edge. Set Preferences βΈ Units & Rulers to Percent before recording crops and selections so they play back relative to each image. Test it on your weirdest file before trusting a batch.
π Conditionals & Batch
From the Actions panel menu, Insert Conditional⦠lets a step ask a question about the document or the active layer (Document Is Landscape, Portrait, or Square; Document Mode Is RGB or CMYK; Document Is 16 Bits Per Channel; Document Has Layers; Layer Is Type or Smart Object) and play one Action if true and another if false. There is no condition for pixel size or for a layer's name. Chain a couple and one Action gracefully handles a mixed folder.
To run it, File βΈ Automate βΈ Batch: choose the Action, a source folder (or "Import"), a destination, and file-naming rules. Tick Override Action "Save As" commands so files land where you say. For a reusable icon, File βΈ Automate βΈ Create Droplet writes a small app; drop any images or folders onto it and the batch runs.
β Suppress dialogs for a hands-off run
In Batch, tick Suppress File Open Options Dialogs and Suppress Color Profile Warnings, set Errors to Log Errors To File, and leave the Action's dialog toggles off so nothing stops the run halfway. A true batch should complete 500 files without asking you a single question β that is the whole point.
π οΈ Guided Build: A Delivery Action
Gather a folder of mixed landscape and portrait images to prep for the web.
Step 1: Record the core Β· 10 min
- Window βΈ Actions βΈ new set "Delivery", new action "Web Delivery", Record.
- File βΈ Automate βΈ Fit Image at 2000 Γ 2000 px (it scales the long edge to 2000), Unsharp Mask, Place your watermark PNG, Layer βΈ Flatten Image (a JPG can't hold layers), Save As JPG. Stop recording.
Step 2: Add the branch Β· 10 min
- Set Preferences βΈ Units & Rulers to Percent, then record two tiny helper actions in the same set: "Crop Wide" (for example a 16:9 crop) and "Crop Tall" (for example 4:5). When they're recorded, set Units & Rulers back to Pixels (scripts and later lessons assume pixels).
- In Web Delivery, select the first step, then panel menu βΈ Insert Conditional: If Document Is Landscape play Crop Wide, else Crop Tall.
- The conditional lands below the selected step, so drag it to the top of the list. Crop first, then Fit Image, so the final long edge is still 2000 px.
Step 3: Batch it Β· 8 min
- File βΈ Automate βΈ Batch: Action = Web Delivery, Source = your folder, Destination = an output folder, tick Override Save As, set naming.
- Run. Watch the whole folder process untouched, landscape and portrait each cropped correctly.
Step 4: Make a droplet Β· 6 min
- File βΈ Automate βΈ Create Droplet, point it at Web Delivery, save the droplet to your desktop.
- Drag a folder of new images onto it. Instant delivery set, no Photoshop menus. π
β Project Completion Checklist
- β A recorded, relative delivery Action (Fit Image, percent-based crops)
- β A conditional branching landscape vs portrait
- β A batch that runs the folder hands-off with Override Save As
- β Errors logged, no mid-run dialogs
- β A working droplet on the desktop
π§ Now You: Solo Variation
π Your challenge
- Record an Action that outputs three sizes of each image (thumb, web, print) into three subfolders in one run. Batch it with Destination set to None (not Override Save As), because Override sends every save to the single Batch destination.
- Add a conditional that only processes layered masters: If Document Has Layers, play the full delivery; else play a lighter "already flat" version. (Conditionals can't look for a layer by name. For that kind of test you need a script.)
- Build a droplet a non-Photoshop colleague could use, with a Stop step that explains what to do if something looks wrong.
Going further: Actions can't loop or read a spreadsheet β when you hit that wall, the next lesson's variables and scripting take over. Note down the tasks Actions couldn't handle.
π³ Recipe Card: Actions & Batch
Record once, run forever
- Window βΈ Actions β new set + action β Record relative steps (Fit Image; rulers in Percent)
- Insert Conditional to branch (landscape / portrait / square / mode)
- Insert stops / modals only where human input is truly needed
- File βΈ Automate βΈ Batch over a folder, Override Save As, suppress dialogs, log errors
- Create Droplet for a drag-and-drop reusable
Mantra: if you'll do it twice, record it once.
π Learning Journal
Add to your journal after this lesson:
- Key concepts you learned
- Techniques that clicked for you
- Questions or confusion points to revisit
- Ideas you want to try
- Your progress and feelings about learning this
βοΈ This lesson's prompt: List three repetitive tasks in your own workflow. For each, could an Action do it, or do you need a conditional or a script? Sorting them is the start of automating your practice.
π Lesson Summary
π Key Takeaways
- An Action replays recorded steps; record them relative (Fit Image, rulers in Percent) so they survive varied input.
- Insert Conditional branches on the document or active layer (orientation, mode, bit depth, layer type), not on pixel size or layer names.
- File βΈ Automate βΈ Batch runs an Action over a folder; Override Save As, suppressed dialogs, and logged errors make it hands-off.
- A droplet packages that batch as an icon you drag files onto.
π What You've Accomplished
You built a delivery Action that crops by orientation, resizes, sharpens, watermarks, and saves, then ran it over a whole folder and wrapped it in a droplet. Work that used to eat an afternoon now runs while you do something else.
β Common Questions at This Stage
My Action works on one image but breaks in the batch. Why?
Almost always an absolute value: a fixed crop, a hard-coded Image Size, or a named layer that doesn't exist in every file. Re-record those steps relative (Fit Image, rulers in Percent), and add conditionals to route files that don't match your assumptions.
Actions vs droplets vs scripts: when each?
Use an Action for repeatable steps, and a droplet to hand that Action to someone else as a drag-and-drop icon (it runs when files are dropped on it; it doesn't watch a folder). Reach for a script when you need loops, math, external data, or decisions Actions can't express. They stack: scripts can even call Actions.
Why did all my files land in one folder when I wanted subfolders?
Override Action "Save As" Commands redirects every save to the Batch destination. If your Action saves to its own folders, set Destination to None and let the Action's Save As steps decide.
π Looking Ahead
Actions replay fixed steps; they can't read data or loop with logic. When the job is "make 300 badges from a spreadsheet," you need Lesson 6.3 β Data-Driven Graphics & Scripting, the Module 6 deliverable, where variables and a little JavaScript take automation the last mile.
β Before the Next Lesson
- Batch your Web Delivery Action over a mixed folder with no mid-run dialogs.
- Save a droplet and test it on a fresh set of images.
- List the tasks Actions couldn't handle, and write your Learning Journal entry.
π Additional Resources
π Encouragement for the Journey
Every minute you spent recording and testing this Action pays you back on every folder from now on. You have started thinking like a studio, not just an editor: do it well once, then let the machine repeat it.