I need 'Save a copy' function in my scipt. But i can't find this method. When use 'document.save(save as)' function, document's name is changed and can't undo last command. When use 'file.copy() ' function, new document is copied from origin, not current document. How to make it?
doc = app.activeDocument;
docPath = doc.fullName;
newPath = docPath.toString().replace(".indd", "_1.indd");
I hope that helps to you.