Article View: adobe.scripting.indesign
Article #8721InDesign CS2 (JS) - Numbering and Section Options
From: StephenPritchard
Date: Wed, 27 Sep 2006 15:38
Date: Wed, 27 Sep 2006 15:38
35 lines
1892 bytes
1892 bytes
Greetings,
I am trying to setup a new document control through Java that will have some control over the Numbering and Section options. I have been working for a while on this and can't find much if any information at all that anyone has really touched on this at all.
Ideally I would like the script to pop up a dialog box asking the user to input the "start page number". Once the number has been input to have the information adjust the numbering and section options of the document.
This is what I have leading up to where I would like this option to appear.
Any help would be appreciated!!!
----------------------------------------------
var myDocument = app.documents.add();
with(myDocument.documentPreferences){
pageHeight = "11in";
pageWidth = "8.5in";
pageOrientation = PageOrientation.portrait;
pagesPerDocument = 2;
}
with(myDocument.documentPreferences){
documentBleedUniformSize = true;
documentBleedTopOffset = "0p9";
}
with (myDocument.pages.item(0).marginPreferences){
bottom = "4p"
left = "3p"
right = "1p"
top = "2p"
}
with(myDocument.viewPreferences){
horizontalMeasurementUnits = MeasurementUnits.picas;
verticalMeasurementUnits = MeasurementUnits.picas;
}
Technical Details
Message-ID:
<3bc1cc27.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,8c86d8a4da52ff38,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: StephenPritchard@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: InDesign CS2 (JS) - Numbering and Section Options Message-ID: <3bc1cc27.-1@webcrossing.la2eafNXanI> Date: Wed, 27 Sep 2006 08:38:31 -0700 Lines: 42 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit