Open and close PDF files from a CVS list
I would like to perform some actions on a list of files. I have them in a CSV file. I can read it in OK in the Console but cannot open them. The paths are correct, I can open one. But in the loop it does not work. Why?
var oFile = util.readFileIntoStream("/C/test.txt");
var cFile = util.stringFromStream(oFile, "utf-8");
var n = cFile.split(",");
//second part
for (var i in n) {
var otherDoc = app.openDoc(n);
otherDoc.closeDoc();
}
undefinedInvalid Location "/D/test.pdf". File or folder does not exist.
NotAllowedError: Security settings prevent access to this property or method.
App.openDoc:2:Console undefined:Exec
undefined
