1 person found this helpful
My guess is the script could have been written to save without the dupe step. But the script does change the document and I think the dupe just makes it easier to deal with those changes. That is it doesn't have to restore the changes after saving each comp.
I see. So if I understand correctly it's a safety measure?
My intention is to drop it, since this code affects the user: additional document is opening & then closing in the photoshop main screen UI. Something that the user might see when running the script.
If you are talking about this specific script it is more than a safety measure. It is more of a way to handle changes the script makes to the document.
I wouldn't drop duping the document unless code was added to to restore the document to the state it was in at the script's startup.
I'm talking about the script that I'm writing, and using that script as learning base.
Thanks for all the help.
I realize this is a very old post... found it while looking for something else.
The document must be duplicated because the "File Save" operation would rename the CURRENT document and that's probably not desired.