Copy link to clipboard
Copied
var openDoc = app.openDoc({cPath: myPath});
var d = app.activeDocs; <--gets all open docs
app.alert("this.path: " + this.path); <--this.path is not always the openDoc.
app.alert("openDoc.path: " + openDoc.path);
How do I make the openDoc the active Doc? Essentially I am needing to add page numbers to it.
You can try using the bringToFront method, but there's really no need to do it. Just use the openDoc variable instead of the "this" variable.
Copy link to clipboard
Copied
You can try using the bringToFront method, but there's really no need to do it. Just use the openDoc variable instead of the "this" variable.