This content has been marked as final. Show 4 replies
Maybe something like this:
var myFile = File('/myFolder/myFile.indd'); app.open(myFile, undefined, OpenOptions.OPEN_COPY);
Hope this is what you are looking for.
Exactly what I was looking for but... why I can't see that 3rd parameter in documentation?
Perhaps you were looking at File.open
Parameter Type Description from Array of Files
The file path(s) to the document, book, or library. Can accept: File or Array of Files. showingWindow bool If true, opens the document in a window. If false, the document is opened but is not displayed in a window. (Optional) (default: true) openOption OpenOptions:
How to open the document. (Optional) (default: OpenOptions.DEFAULT_VALUE)