Copy link to clipboard
Copied
I would like to create an action that saves the .psd file I'm working on several times (without saving the .psd file) as a .jpeg with same name+number (next one, same name+next higher number) and so on. Any way to do this?
This isn't possible with an action, but it can be done with a script.
There are many to be found in the forum via search using keywords such as "sequential" or "incremental".
One recent such topic with a great full-featured script can be found here:
More here:
...
fN = (fls = File((aD = activeDocument).path).getFiles('*.jpg')
.sort(function(v1, v2) {return v1.modified < v2.modified})).length ?
File(String(fls[0]).replace(/(\d+|)(?=\.jpg$)/i, function(_, v){return +v + 1}))
: aD.fullName, (jpg = new JPEGSaveOptions).quality = 12, aD.saveAs(fN, jpg, true)
Copy link to clipboard
Copied
This isn't possible with an action, but it can be done with a script.
There are many to be found in the forum via search using keywords such as "sequential" or "incremental".
One recent such topic with a great full-featured script can be found here:
More here:
Copy link to clipboard
Copied
Thank You!!
Nancy
[ private informations removed by moderator for security reasons ]
Copy link to clipboard
Copied
Your welcome, please mark my reply as the correct answer if it closes off and resolves your original post/question.
Copy link to clipboard
Copied
I like these users that mark as correct answer the one you less likely expect as correct 😉
Copy link to clipboard
Copied
Sorry. I'm way in over my head -- don't really know what is best one.
Thank you anyway
Nancy
[ private informations removed by moderator for security reasons ]
Copy link to clipboard
Copied
The best is that you can use for your problem. Did you try my script?
Copy link to clipboard
Copied
fN = (fls = File((aD = activeDocument).path).getFiles('*.jpg')
.sort(function(v1, v2) {return v1.modified < v2.modified})).length ?
File(String(fls[0]).replace(/(\d+|)(?=\.jpg$)/i, function(_, v){return +v + 1}))
: aD.fullName, (jpg = new JPEGSaveOptions).quality = 12, aD.saveAs(fN, jpg, true)