Script to rename files to a global file name and append a ratio number based on the width and height
Here is my proposed workflow:
- Five open psd files all of the same subject but created from different templates for printing on different papers with different ratios, e.g. 3x2, 4x3, 5x4, 14x11 and A1.
- Open script that allows me to input a global name for each active doc.
- Script then looks at each file's width and height in pixels and appends 3x2 or 4x3 or 5x4 or 14x11 or A1 to the global file name so that each file has a unique name.
- Opens a Save As box to allow me to point to a save location.
- Proceeds to Save a copy of each file as a jpeg with a quality option of 12.
- end.
I've written script in the past but I am somewhat rusty. I'll need this routine to do the same thing for portrait orientation too but I can modify it on my own. I tried using AI to generate simpler scripts that I could put together but they don't work. Debugging in Photoshop uses UXP and I'm not familiar with that tool.
MacOS Ventura 13
Thanks
