synchronize: Synchronizes the entire book to the style source document.
The default style source document for a new book is the first one added, but you can change it to any other with
myBook.styleSourceDocument = myBook.bookContents[...]
myBook.styleSourceDocument = ..a reference to a document..
This does mean, however, you have to know in advance which of your documents contains the TOC style you want to copy to all others.
I can Synchronize TOC style by this way myBook.styleSourceDocument = myBook.bookContents[...] easily
But my users will seleceted the document or template that TOC styles besides and i used this also
var stDoc = app.open(File ('/Users/sankar/Desktop/TOC_1 column/templates/Untitled-9.indd'), true);
myBook.styleSourceDocument = app.documents;
but i couldn't synchronize. Is it correct way...
Is that source document also part of the same Book file? I think the synchronize option is supposed to only work within one and the same Book.
Many Thanks Jong, am also rooted add the source document in book and sychronise styles from that. And once synchronized that source file will be removed from that book.. Its working fine now and thanks a very lot.