David Mac Do
Conditional actions are not a big deal. In reality they are a one line script built into the fly-out menu and the feature only support a limited number of conditions. To phrase the script in english is a simple one liner
If Document (condition pulldown list) selected is true Play true action in set(selected) else Play false action in set (selected). Actions do not need to be select for both true and false. One selection may do what is needed.
All three supported Photoshop supported scripting languages have support for an "if" statement.
A javascript was posted years ago "Siva's Photoshop Conditional Action.jsx" do a serach.
Actions can use scripts and scripts can do actions
example
if (activeDocument.height > activeDocument.width) doAction("Rotate", "MyActionSet"); // rotate portraits
Crafting Actions PackageUPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
Contains
- Action Actions Palette Tips.txt
- Action Creation Guidelines.txt
- Action Dealing with Image Size.txt
- Action Enhanced via Scripted Photoshop Functions.txt
- CraftedActions.atn Sample Action set includes an example Watermarking action
- Sample Actions.txt Photoshop CraftedActions set saved as a text file.
- More then a dozen Scripts for use in actions