These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

can a variable be passed to app.openDoc?

kdobos
Registered: Feb 5 2008
Posts: 18

I am attempting to use a variable as cPath for app.openDoc as an addLink setAction ,in a JavaScript batch but have had no success. I have tried several permutations of
l.setAction("app.openDoc((global.wholePDFfilename[d]),this);");
Am I not using the proper syntax, or can this be done at all?

thanks

My Product Information:
Acrobat Pro 8.1.2, Windows
kdobos
Registered: Feb 5 2008
Posts: 18
I found that it can be done with the proper syntax.

l.setAction("app.openDoc(\""+global.wholePDFfilename[d]+"\",this)");

will work, but I can only speculate why.