Skip to main content
Participating Frequently
April 30, 2025
Question

Command "If" not currently available

  • April 30, 2025
  • 2 replies
  • 152 views

Good day. We have a number of Photoshop actions which resize image files, reducing the pixel value of the long side and using the conditional command to distinguish between images in landscape and portrait orientation. In other words, there's a separate resizing action for both landscape and portrait, and the Master action runs one of these two based on image orientation. Without a discernible pattern, a batch using this action will occasionally fail with the message The command "If" is not currently available. Typically, I've just deleted the conditional action and re-recorded using the two source actions, and then I can complete the batch. I'm curious to know what causes this error and how to avoid it. Any insight from the community would be greatly appreciated! Thanks in advance.

2 replies

c.pfaffenbichler
Community Expert
Community Expert
May 1, 2025

Does the same problem occur with Image Processor instead of Batch? 

Stephen Marsh
Community Expert
Community Expert
May 1, 2025

I haven't encountered this myself. A copy of the action, the files, and stating your version/build of Photoshop (Windows) would help.

 

EDIT: As a fallback option, one could use a script and record that into the action as a "helper" step, such as these examples which are not based on orientation:

 

https://snipit.io/public/collections/22660/22660

 

https://prepression.blogspot.com/2022/11/photoshop-action-helper-scripts.html