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:

  1. Start creating and recording your action.

  2. Choose File→Automate→Conditional Mode Change.

    The Conditional Mode Change dialog box appears.

  3. 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.

  4. Select your desired Target Mode from the Mode pop-up menu.

  5. Click OK.

    If all goes well, Photoshop incorporates the Conditional Mode Change command as a step in your action.