Skip to content

Instantly share code, notes, and snippets.

View cooldtp's full-sized avatar

Skin cooldtp

View GitHub Profile
//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++) {
//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;