Actions don’t have logic, they are “linear”... however there are basic built in conditional actions which are useful, if rather limited.
Conditional logic is generally offered by scripting, and a script can play actions. One example of a “conditional action” (script) here:
Perfect, thanks much.
There are conditional steps that can be use to test a few document and layer conditions not many. You can also use scripts steps like File>Automate>Fit Image. Fit image is a Plug-in script that is an Adobe Photoshop Plug-in it will record the setting you used in its dialog recording an action step into the step in the action. When the Action is played the recorded setting will be used and the Fit Image script will not display its dialog so that action can be batched. You can also write you own Photoshop scripts and use them in action to add logic to actions. Included in my crafting Action package are a dozen or more script I wrote to be use in action.
Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
- 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