I'm having issues performing this folder-level JS from the console.
I get an error when this function is run:
function DumpBookmark(bkm, nLevel)
{
var s = "";
for (var i = 0; i < nLevel; i++) s += " ";
if (bkm.name != "Root") {
bkm.execute();
number[k] = this.pageNum;
bknames[k] = bkm.name;
k++;
}
if (bkm.children != null)
for (var i = 0; i < bkm.children.length; i++)
DumpBookmark(bkm.children[i], nLevel + 1);
}
DumpBookmark(this.bookmarkRoot, 0);
Why wouldn't this work from the console?