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
l.setAction("app.openDoc(\""+global.wholePDFfilename[d]+"\",this)");
will work, but I can only speculate why.