Using Photoshop 22.4.2 on BigSur 11.4
I've created an Action that I'm using to open a folder of PSD files, crop them square, and save as a JPEG.
The Action runs perfectly as expected when running it on an open file in Photoshop.
Note that the all the commands completed and a JPEG was saved into the folder on the left.
Closeup of the Action:
I have ~100 PSD files to apply this to, plus other actions/batches I would like to execute in the future, but when I close the open file and use File>Automate>Batch to run the action on a folder of PSDs, the batch fails with a "The command "Select" is not currently available" which is the first command in the Action. This repeats for every command.
Things I've tried:
Not sure what I'm doing wrong? I use Actions regularly but haven't tried to Batch in about a year. Has any one else experienced problems like this? Thanks!
Edit: I understand that generally this occurs when a Command's expected prerequisite isn't met, but seeing as it is the first Command within an Action (plus it works perfectly within an open file) I'm struggling to find the source of the problem.
Thanks again for any help!
Copy link to clipboard
The first step is explicitly selecting "Layer 1". Do all the files have this exact layer name?
Are all files only single layered?
You can run bulk processing using an action with various scripts such as the Image Processor script that ships with Photoshop, or other scripts such as Image Processor Pro, Picture Processor etc. These scripts perform the open and save steps so remove or disable the save step in your action if you use these scripts.
Yes, the all have only one layer called "Layer 1". Even if that weren't the case, the Action still runs fine within the file, so the Batch process not being able to find that layer can't be the problem, can it?
@tomzag same applies
Copy link to clipboard
Can you post a cropped screenshot of the action panel with all steps expanded?
Here you go! Although as I mentioned, the Action has no problem running within the file, the issue only comes up when trying to use Automate > Batch. Thanks!
That is without the Select command at the start, forgot to re-add it while troubleshooting.
Just curious if there is only one layer and they are all named the same, you shouldn't need to select the layer by name.
So what happens to your batch when as you say for troubleshooting the select layer 1 step is removed?
You could also try inserting the select all layers command if you feel the need to explicitly select the only layer in the file.
Yes as I mentioned in the post, I have tried that. The Batch just fails at the first step again with "The command 'Duplicate' is not currently available.
Tried select all, same problem. There isn't anything wrong with the way the action is written: it runs fine on an open file from the Actions panel. The problem only comes up using the Batch window, regardless of what the command is. No commands run from the action window no matter what I do.
I'm not familiar with these, and I'd prefer to keep things native if possible. I'd rather not sink work time into figuring out more software, I'd prefer if Photoshop just worked as designed... I'll keep that as a last resort, thanks for the suggestion 🙂
Your action wants to select a layer with the name "Layer 1".
If there is no "Layer 1" you receive the error mentioned (in your screenshot there is only a layer with the name "Background"). I think this is the problem.
Error only comes up when the file is closed with the Batch window open. That window appears as pictured above, along with the error message.
I don't use the Batch command ... never, it's easier to write a script.
I'm wondering what you mean by the Batch window?
As far as I know, there shouldn't be any windows at runtime.
You say the file is closed. This is strange.
Naturally, there will be an error, since the Action has nothing to work with.
You have something strange going on.
It would be better if you recorded a video or posted your Action here + a screenshot of the Batch settings.
Then one could try to reproduce your situation
I've never gotten into writing scripts, I find the UI fine ans easy to work with.
The batch window is in a screenshot in my post. Found under File>Automate>Batch. This can be accessed without a file open, just the application. All of the sreenshots are in my post? I'm not sure what else you need.
Loll, already long thread with probably quick and obvious solution 🙂
If you understand what is happening and what the problem is, please explain it to us.
No, I don't. I'm assuming the cause of the trouble might be something unsaid yet and banal.
There's literally a screenshot of the Batch window, so that answers your question. Obviously I am clicking "OK" in the Batch window after setting up the batch. How could this possibly be misunderstood?
>>>Error only comes up when the file is closed with the Batch window open.
Error does not come up when running the Action within an open file (as seen in screenshot). Error only occurs (as seen in screenshot) when attempting to run the Action in the Batch window (as seen in screenshot) using File>Automate>Batch. I am clicking OK to run the batch and the error occurs.
I won't screen record because I don't want to disclose personal information, don't have the time to find recording software, compress it, host it somewhere and share, and because all it would be is my cursor moving between screens that I have already shown in screenshots. Instead of a video, imagine these two screenshots connected by me clicking OK. I'm not sure how I can possibly give you more detail.
No change. Should I expect a UI change to effect my Batch errors?