by creating a TOC by script InDesign always adds bookmarks to the document even if the option "Create Bookmarks" is disabled in the TOC-Style. Do I miss something?
myTocStyle = myDoc.tocStyles.item("TOC_Chapter");
Thanks for help!
Can anyone confirm this problem? Anyone?
Confirmed for CS4 on Windows. createBookmarks is also ignored when you create a new TocStyle from scratch. Reading its value works, writing does not.
Report as bug.
Just figured out another way to reload the TOC: Undo the "createTOC" and reload by scriptmenuaction ...
var myTocStory = myDoc.createTOC(myTocStyle, true);
var myTocFrame = myTocStory.textContainers;
app.scriptMenuActions.itemByID(71442).invoke(); // reload TOC