Hello @all,
I have a problem with the following code to auto-update my TOCs in InDesign CS4:
var myDocument = app.activeDocument;
alert("createBookmarks: " + myDocument.tocStyles.itemByName("Kapitel 1").createBookmarks); // --> this show me "false"
var myStory = myDocument.createTOC(myDocument.tocStyles.itemByName("Kapitel 1"), true /*replacing*/);
After this action I have entries from the TOC ("Kapitel 1") in my pdf bookmark? Why?
I also tried for test purpose the following:
myDocument.tocStyles.itemByName("Kapitel 1").duplicate();
This copy of my TOC has the option "pdf bookmars" on "true"?!
How can I force, that I get NO createBookmarks for this TOCs?
If I use manually "layout-->toc-formats-->update TOC" it works fine for me.
Regards,
Jessi