adobe javascript how to refer to another pdf
This is a basic question but I can't find the answer. I am running a script from one pdf and want to change a field in another pdf. To refer to the main pdf, I used something like
var mainDoc=this;
How do I set a variable to refer to the other pdf?
Originally, I used :
var otherDoc = app.openDoc("second.pdf", mainDoc);
This all worked well but it doesn't work on Reader XI, possibly because protected mode is on and I can't turn it off because it's a computer network at my workplace. I'm trying to work around it by opening the second pdf manually and having it open while I trigger the script from the main pdf. But it's not doing anything.
Thanks!
