Skip to content

Instantly share code, notes, and snippets.

@ff6347
Created May 10, 2012 08:03
Show Gist options
  • Save ff6347/2651815 to your computer and use it in GitHub Desktop.
Save ff6347/2651815 to your computer and use it in GitHub Desktop.
close all open InDesign documents
// Like Uncle Ben saz: "With great power comes great responsability!"
app.documents.everyItem().close(SaveOptions.NO);
// Like Uncle Ben saz: "With great power comes great responsability!"
app.documents.everyItem().close(SaveOptions.NO);
app.books.everyItem().close(SaveOptions.NO);
// Like Uncle Ben saz: "With great power comes great responsability!"
app.documents.everyItem().revert(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment