Article View: adobe.scripting.indesign
Article #9433Re: Numbering based on auto page number
From: herrmueller
Date: Sun, 20 Aug 2006 01:44
Date: Sun, 20 Aug 2006 01:44
20 lines
1456 bytes
1456 bytes
//****************************************************************
//To use the following script:
//Create two textFrames next to eachother, one for the page number one for coupon numbers.
//Add a script label of "pageName" to the one that will contain the page number
//Add a script label of "couponNum" to the one that will contain the coupon number
//Copy this script and save as plain text with a .jsx extension.
//Place it in the script folder located in the presets folder of the application.
//Double click to run.
//***************************************************************
doc=app.activeDocument;
pgLn = doc.pages.length;
for(i=pgLn;i>0;i--){
doc.pages[i-1].textFrames.item("pageName").contents+="Page "+i;
doc.pages[i-1].textFrames.item("couponNum").contents+="Coupon Number "+(i+9000);
}
Technical Details
Message-ID:
<3bc14d44.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc14d44.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,f696280db6c146fa X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: herrmueller <jmiller@halodesignstudios.com> Newsgroups: adobe.scripting.indesign Subject: Re: Numbering based on auto page number Message-ID: <3bc14d44.2@webcrossing.la2eafNXanI> Date: Sat, 19 Aug 2006 18:44:34 -0700 References: <3bc14d44.-1@webcrossing.la2eafNXanI> Lines: 25 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!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing