Script execution within JS Debugger Not Working For Scripts
So, I am trying to figure out how to get code to run within the console. It seems like for simple things like 1+2 it works but any functions I have written as a document JS does not work. What am I missing?
For reference, I am splitting some files...
function Split() {
var totalPages;
var i;
var arrNames = [ "SOME ARRAY HERE" ];
var targetPath = "/C/Users/SOMEPATH/";
totalPages = this.numPages;
try { for (i = 0; i < totalPages; i++)
this.extractPages({
nStart: i,
cPath: targetPath +arrNames + ".pdf"
});
console.println(targetPath +arrNames + ".pdf");
} catch (e) {
console.println("Aborted: " + e)
}
}
