🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1076

Re: Help with syntax: Adding pages JS CS3

#1076
From: Jeremy_Bowman
Date: Mon, 23 Feb 2009 17:27
11 lines
1081 bytes
I'm a beginner too (so take what Peter says more seriously than what I say!) but this works for me (select a text frame on the page you want to add a page after):

var myDocument = app.activeDocument;
var mySelection = app.selection[0];
var myPage = mySelection.parent;
myPages = myDocument.pages;
myPages.add(1634104421, myPage);

BTW, in my brief scripting career I've always found those numbers more reliable than the keyword enumerations.

Jeremy
Technical Details
Message-ID: <59b7feca.3@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b7feca.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,820d8b9639e366ce
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jeremy_Bowman@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Help with syntax: Adding pages JS CS3
Message-ID: <59b7feca.3@webcrossing.la2eafNXanI>
Date: Mon, 23 Feb 2009 09:27:42 -0800
References: <59b7feca.-1@webcrossing.la2eafNXanI>
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit