open all documents of book
Hello!
Me again, writing with Google Translate, i'm sorry!
I'm pretty begins on the subject, hope this forum even for beginners.
If not, tell me and run away ...
Two questions:
A. Theoretically. When should I use "getElements" in addition to "everyItems"?
In. Why this script does not open all my book documents?
(Nothing happens)
if (app.activeBook! = undefined) {
myBook = app.activeBook;
for (var a = 0; a <myBook.bookContents.length; a + +) {
myItem = myBook.bookContents.item (a);
var myS = myBook.bookContents.item (a). status;
if (myS! = "DOCUMENT_IS_OPEN") {
app.open (myItem.filePath);
}
}
}
Thank you!