How to Use the Conditional Mode Change Command in Photoshop CS6
With the Conditional Mode Change command, Photoshop CS 6 enables you to specify instances in which one mode changes into another so you can use the conversion command in an action.
Briefly, an action is a collection of recorded and saved commands that you can replay repeatedly. Sometimes, when you incorporate a mode conversion as part of an action, you get an error message because the file you're opening may not have the same mode you specified as the source mode in the action.
For example, you may have specified CMYK as your source mode in the action, but the action opens a file in Grayscale mode. You get an error message because the Grayscale mode of the file doesn't match the CMYK source mode. The Conditional Mode Change command takes care of this problem. Follow these steps to add this command to your action:
Start creating and recording your action.
Choose File→Automate→Conditional Mode Change.
The Conditional Mode Change dialog box appears.
Select the mode(s) you want as valid for the source mode.
Other options include the All or None buttons to select (respectively) all modes or no modes.
Select your desired Target Mode from the Mode pop-up menu.
If all goes well, Photoshop incorporates the Conditional Mode Change command as a step in your action.