3 Replies Latest reply on Mar 20, 2016 9:09 AM by Obi-wan Kenobi

    Update several TOCs in the same doc. …

    Obi-wan Kenobi Level 5



      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++) {  




      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!