Skip to main content
dublove
Legend
Mar 4, 2025 5:09 PM UTC
Answered

How to open or close all documents in a book at once?

I found the shortcut for storing all documents in a book (set under View Navigation):
Ctrl+Shift+Alt+S

(This may not be very scientific, as it is possible to save the documents that  outside the book)
But did not find a command to open or close all documents in the book at once.

pper right corner, right click doesn't have this function at all.

Dave Creamer of IDEAS
Dave Creamer of IDEASCorrect answer
Community Expert
Mar 5, 2025 2:29 AM UTC

Open all book documents: Select desired files listed in bookfile; double-click on any of the selected files.

Save all open documents: Cntl-Alt-Shift-S/Cmd-Opt-Shift-S.

Close all open documents:  Cntl-Alt-Shift-W/Cmd-Opt-Shift-W. (I recommend saving all first or your will have to respond to each unsaved document.)

 

David Creamer: Community Expert (ACI and ACE 1995-2023)

5 replies

Dave Creamer of IDEAS
Community Expert
Dave Creamer of IDEASCommunity ExpertCorrect answer
Community Expert
Mar 5, 2025 2:29 AM UTC

Open all book documents: Select desired files listed in bookfile; double-click on any of the selected files.

Save all open documents: Cntl-Alt-Shift-S/Cmd-Opt-Shift-S.

Close all open documents:  Cntl-Alt-Shift-W/Cmd-Opt-Shift-W. (I recommend saving all first or your will have to respond to each unsaved document.)

 

Translate
David Creamer: Community Expert (ACI and ACE 1995-2023)
brian_p_dts
Community Expert
Community Expert
Mar 4, 2025 8:14 PM UTC

Assuming your book is active, this will close them. Can be reversed engineered to open them too.  

 

try {
 var b = app.activeBook;
} catch(e) { exit(); }
 var bcs = b.bookContents;
var i = bcs.length;
while(i--) {
   try { bcs[i].close(SaveOptions.YES); } catch(e) {}
}

 

Translate
dublove
dubloveAuthor
Legend
Mar 5, 2025 2:25 AM UTC

This one didn't respond.
I don't know what went wrong.

Translate
Inspiring
Mar 4, 2025 7:11 PM UTC

There is a way to open multiple documents via the book panel, but it's a bit iffy.

Select the first document in your book panel, then hold Shift and click on the last document, this way all documents should be selected. Now double click (without holding Shift) on any of the selected documents and all should open. At least this works on MacOS.

Closing all documents can be done by Command + Option + W on Mac, this is a system wide shortcut to close all windows of the active program. I don't know if there's a windows equivalent for that.

Translate
dublove
dubloveAuthor
Legend
Mar 5, 2025 2:13 AM UTC

Closing a document after selecting all will also prompt to close all documents.
Thank you very much.

Translate