0

I have a bunch of files named "lorem1@2x.png, lorem2@2x.png, lorem3@2x.png... ...lorem11@2x.png"

When I try to batch process them, they start at the 10th file, then goes on to the 11th, looping around back to the first file. Why is it doing this and how can I ensure the correct processing order?

  • Its doing it in alphabetical order char by char. – joojaa May 21 '14 at 20:16
  • I'm curious, why does the order matter? Isn't the end result the same no matter what the file order is in a batch process? – Joonas May 21 '14 at 23:09
  • It's because I'm naming the files with serial labels. I'm taking lorem1@2x.png, changing it and saving it as lorem(#).png. In order to remove the @2x, I have to rename the file completely to lorem + (1, 2, 3...) – Justin May 22 '14 at 17:40
  • You did get your problem solved apparently, but since Photoshop is not super ideal for this, I would use a batch renaming application for that. --- Adobe Bridge has a batch renaming feature. There's a string substitution preset which would be perfect for that. --- If that is not an option, there are also many batch renaming applications for mac, and I believe for windows as well. I prefer free NameChanger. It has a replace first occurrence with, which would work for this ( I'm sure every batch renaming application has similar functionality. ) – Joonas May 22 '14 at 20:16
  • I'll look into that if I ever need to do more extensive renaming. Thanks! – Justin May 22 '14 at 23:49
1

You need to name your files with leading zeros for the variable number (i.e. lorem01@2x.png or lorem100@2x.png). If you have less than 100 files, two-digit numbers will do. If you have less than 1000 files, three digits will do. And so on.

Files will batch in the same order they appear when sorted by name in Explorer (or Finder on Mac).

  • Correction: not true for Macs. My bad. :) – digijim May 21 '14 at 20:59
  • Finder might not use the same rules for name order, but leading with zeros fixes it! Thanks! – Justin May 21 '14 at 22:05
  • 1
    Actually newer windows do the number globbing sort, which is different form what PS uses. There are some advantages and dnownsides with both approaches. At the moment the number globbing method is causing me LOT of grief. – joojaa May 22 '14 at 7:12
0

The same error occurred for me - which was caused by the "Save As" action step. Instead of using the default file name, I had created a custom name. When calling this action in the batch process Photoshop was continually using this naming convention instead of its default - 'write new' process. So, remove any custom naming in the 'save as' action and your problem will be resolved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.