is it possible to assign a different file name to an open document?
if I make a duplicate, I can do so, but if I still want to rename the original file? not save, only rename...
Code: Select all
var aDoc = app.activeDocument;
var fileName = aDoc.name.slice(".")
var WF = Math.round(aDoc.width);
var HF = Math.round(aDoc.height);
var theCopy = aDoc.duplicate ("Face" + "_" + WF +"x" + HF + "mm_" + fileName, true);
How can I do this?