Article View: adobe.scripting.indesign
Article #10279Re: [InDesign Server, JS]wanna start a new section from a page other than the first page
From: nicole.ca
Date: Thu, 29 Jun 2006 16:00
Date: Thu, 29 Jun 2006 16:00
30 lines
1449 bytes
1449 bytes
well, following is my script,
var document = app.documents.add();
document.pages.add();
document.pages.add();
var page = document.pages.item(2);
var pgSection = document.sections.add(page);
with (pgSection)
{
continueNumbering = false;
pageNumberStart = 4;
}
document.pages.add();
document.pages.add();
document.pages.add();
var page = document.pages.item(5);
var pgSection = document.sections.add(page);
with (pgSection)
{
continueNumbering = false;
pageNumberStart = 10;
}
document.pages.add();
document.pages.add();
I find that I can add section at the 2nd page, but it fails when I wanna add another section at the 5th page. Do you mean that it starts before an existing section? What should I do then?
Thanks very much.
Nicole
Technical Details
Message-ID:
<3bc0bfc3.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc0bfc3.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,f8750ce1c07c82fc X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: nicole.ca@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: [InDesign Server, JS]wanna start a new section from a page other than the first page Message-ID: <3bc0bfc3.2@webcrossing.la2eafNXanI> Date: Thu, 29 Jun 2006 09:00:40 -0700 References: <3bc0bfc3.-1@webcrossing.la2eafNXanI> Lines: 32 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing