3 Replies Latest reply on Jul 11, 2018 1:33 PM by markp9652695

    JS Update TOC - CS6

    markp9652695 Level 1

      I am working with code to update a single TOC in a document. Do you have to select the text frame where the existing TOC resides before updating the TOC? Here’s the code and errors:


      var curDoc = app.activeDocument;

      tocStyle = curDoc.tocStyles.itemByName("Default");

      curDoc.createTOC(tocStyle, true);



      Invalid value for parameter ‘using’ of method ‘createTOC’. Expected TOCStyle, but received nothing.