I am trying to build an action that includes "merge all layers" or "merge visible layers". However when I record that throught the actions tool (usung the layers panel flyout dialog), if a file being batched doesn't have more than two layers or has one layer that is flat, I get an error and the actions stops. I wanted to add a step in the action to run a script that can do one of the two layer merges, and if there is only one layer will just continue without erroroing out.
Could anyone suggest some code snippets or point me the obvious answer?
Thanks so much!
- Not even a script noob yet. Please be kind.