Steps that I follows:
Open Photoshop – No documents are open. I click “Record” in actions I open my phone.PSD file (which opens up in a tab).
I open the .jpeg files (11 files at a time which open up in their respective tabs)
I click Ctrl+Tab in my phone.psd tab to move to my 1st jpeg file. I select all & copy.
On my phone.psd tab I do paste of my copied jpeg into a layer above my sleeve layer.
I then do clip mask to create “Create clipping mask” (the jpeg is now shown on the phone layer shape).
I save the work done in the .psd to web -> File -> Save for web -> .jpg
I then delete the clipped jpeg layer on my phone.psd file which makes it ready for clipping of next jpeg.
I then do Ctrl+Tab to move to the jpeg which I had just clipped & close the tab.
Now, the problem is that whenever I run this batch, the batch runs fine BUT Photoshop renames the files with the same name and overwrites the previous clipped jpeg. The end result is that only the last clipped jpeg is available and that too with the 1st jpeg name.
Can any body help me what is wrong or this is possible via js coding? or in action method.