Created
February 26, 2019 13:38
-
-
Save cooldtp/52f17204b866e09361347ba81daf2f8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//update version for FirstPage_LeftHand.jsx | |
//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; | |
d.documentPreferences.facingPages = true; | |
// d.spreads.everyItem().allowPageShuffle = true; | |
for (var i = 0; i < d.pages.length; i++) { | |
d.pages[i].parent.allowPageShuffle = true; | |
}; | |
p1 = d.pages[0]; | |
p1.appliedSection.continueNumbering = false; | |
p1.appliedSection.pageNumberStart = 2; | |
d.spreads.everyItem().allowPageShuffle = false; | |
//d.spreads[0].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