Skip to content

Instantly share code, notes, and snippets.

@cooldtp
Created February 26, 2019 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cooldtp/8ac8b57f7198185ef5a39154d14c35fe to your computer and use it in GitHub Desktop.
Save cooldtp/8ac8b57f7198185ef5a39154d14c35fe to your computer and use it in GitHub Desktop.
//refer to https://indesignsecrets.com/starting-a-document-on-a-left-hand-page.php
if(app.documents.length !== 0){
app.doScript(function() {
try {
var d = app.activeDocument;
p1 = d.pages[0];
p1.appliedSection.continueNumbering = false;
p1.appliedSection.pageNumberStart = 2;
d.spreads.everyItem().allowPageShuffle = false;
p1.appliedSection.pageNumberStart = 1;
} catch (e) {}
}, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "FirstPage_LeftHand");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment