Path from the Book-Object to a paragraph-styled content
Hi everybody.
By now I understand, that it is not possible to come to a result with (commonplace-)logical conclusions. ![]()
This time I´d like to get all the contents out of a book which are formatted with a certain paragraph-style. I started with this:
app.activeBook.bookContents.everyItem().name
So I got the names of the documents the book contains. According to my logic, this is approximately equal: .document.name. Isn´t it?
The next logical step (for me) would be:
app.activeBook.bookContents.everyItem().pages.everyItem().nameBut, of course, it´s the wrong way... Althought:
app.activeDocumentpages.everyItem().nameworks!
Background of my intension is the creation of a nested loop in which I can collect different contents from different levels (eg. page numbers, documen-/chapter-numbers, etc.). Doesn´t exist a path as I wrote in the head of this thread?