I am already using app.broweForDoc to select a source file for a script. Is there any way for me to get the number of pages in the source file that remains closed?
I need this to verify that the source doc and the open doc have the same number of pages. I intend to put a catch in if this.numPages does not equal the numPages of the source doc.
As always, I appreciate any help
var oRtn = app.browseForDoc();
strPath = oRtn.cPath;
var numpages = this.numPages;
for (var i=0; i < numpages; i++)
nHorizValue: 144, nVertValue: -37,})
No. But you can open it as a hidden window (use the bHidden param), get the
number of pages, and then immediately close it.
Thats what I have been doing, but wanted to know if there was a better way. As always, you are a valuable resource.