Hi chinna,
I write code for override as like below, but its not working. pls help:
var path = Folder.selectDialog ("Select folder");
//~ var files = path.getFiles("*.indd" && "*.indt"),
var files = path.getFiles(/\.(indd?|indt?)$/i );
//~ app.activeDocument.save(path.fsName + "\\" + "NewIndesign"+".indd");
try
{
myDocument.save(new File(path + "/" + "New Indesign.indd"));
}
catch(e)
{
alert ("Already");
myDocument.override(new File(path + "/" + "New Indesign.indd"));
}
myDocument = app.open(new File(files));
by
hasvi