Copy link to clipboard
Copied
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.
Before:
After:
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.
Batch window:
Error popup:
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!
I didn't follow this thread, just looked at your original post and I think you should record to your action 'open' item (of any file from any location), that should happen before 'Selecting Layer' item. I mean if there's in batch 'Override Action "Open" Commands' then your action should start from it? Without any document opened by action and controlled via batch you're getting error dialog.
Copy link to clipboard
Copied
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
Copied
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.
Copy link to clipboard
Copied
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
Copied
Can you post a cropped screenshot of the action panel with all steps expanded?
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
That is without the Select command at the start, forgot to re-add it while troubleshooting.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
OK, have you tried the select all layers command? Have you looked at my previous suggestion for Image Processor, Image Processor Pro, Picture Processor etc?
Copy link to clipboard
Copied
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 🙂
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Loll, already long thread with probably quick and obvious solution 🙂
Copy link to clipboard
Copied
If you understand what is happening and what the problem is, please explain it to us.
Copy link to clipboard
Copied
No, I don't. I'm assuming the cause of the trouble might be something unsaid yet and banal.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
>>>Error only comes up when the file is closed with the Batch window open.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
No change. Should I expect a UI change to effect my Batch errors?