Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 173476

Re: How to define log report path

$
0
0

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


Viewing all articles
Browse latest Browse all 173476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>