How do I list the characterStyles of a document that is inside a book without opening the document? This is my script:
app.open (book_contents, false);
var charStylesDD =app.documents.item(0).characterStyles.everyItem().name;
It works but this happens before a window is opened, as you might imagine it may take a long time and users might think the script did not run. If I remove the app.open part, the value of charStylesDD is undefined.
I need something like:
But unfortunately book.bookContents does not have the characteStyles function.
Any help would be appreciated. Thanks guys!
I was afraid of that. Thank you.