I hope someone can help / I can explain this properly.
I have a script for Photoshop, kindly written many years ago, exporting a bunch of jpegs of different sizes from a psd.
The files exported have a suffix to denote size (e.g. from jacket-3.psd we get jacket-1s.jpg, jacket-3m.jpg, and jacket-3xs.jpg).
The relevant parts of the script for this are:
ExportSizes = [
{ 'width': 300, 'suffix': 'xs' },
];
newFileName = subFolderText + fileNameNoPathClean + ExportSizes[i].suffix + '.jpg';
I wish now to also export a file with the name jacket-shop-3.jpg -- i.e. with the string "shop-" inserted into the original filename rather than just a suffix.
Can anyone please advise how this can be done?