Update several TOCs in the same doc. …
Hi,
Here's the code I've tried to write:
var myDoc = app.activeDocument;
var myTocStyles = myDoc.tocStyles;
var myTocNumber = myTocStyles.length;
for (i = myTocNumber.length; i >= 1; i++) {
myDoc.createTOC(TOCStyle,true);
}
Of course, it doesn't work! ![]()
What I'm trying (want) to do is update all the TOCs in the doc.
Thanks in advance for your wise thoughts! ![]()