I have a folder with around 1600 images. I would like to combine paired images from this folder into layers in a photoshop document. The files are currently named something like this: XXX-1234_123 and XXX-1234_124 so the name before the underscore is shared between the images that need to be combined and the final number is unique to each image.
Just to be clear:
XXX-1234_123
XXX-1234_124
XXX-1235_125
XXX-1235_126
So I want to combine the first two into one file, and then the second two etc.
I have never used scripting in photoshop, so I am a bit lost as to how to go about this, although it looks like it shouldn't be too difficult. Does anyone have a script that does something similar that I could use, with a bit of advice? Once I have the photoshop files I'm fine with using actions and batching to carry out subsequent modifications to the layers.
The files are images of butterfly specimens - upper and undersides.
Any help much appreciated