I have a very long action that generates over 100 PNG images using frequent “Save As” commands. I use Automate > Batch to perform the action, and have chosen “Document Name” + “3 Digit Serial Number” + “Extension” as the File Naming option.
The problem is, instead of appending the serial number each time, it instead adds it to the filename every single time. So instead of FileName001, FileName002, FileName003, etc. I get something like this:
Eventually, the name gets so long that it goes over the path length limit and throws an error.
The name of the files doesn’t matter, just so long as they’re unique and able to export successfully.
You could try the following:
Instead of editing and exporting the image every time, try to add a layer with the current flatted image to a folder inside the PS file (you can do that in your automated job).
After the entire image is processed, the folder containing the layers has all the images that need exporting.
You could manually remove the other layers -> don’t forget to put them back though!
Export that folder’s contents with a script: example script can be found here
I believe that script will export all the layers without the funky name length.