Article View: adobe.scripting.indesign
Article #2036Re: Insert Text Variable
From: Peter Kahrel
Date: Wed, 14 Jan 2009 14:58
Date: Wed, 14 Jan 2009 14:58
10 lines
958 bytes
958 bytes
Thomas,
Since the application text variable you're after is called "Last Page Number", all you need to do is this:
myVar = myDocument.textVariables.item ("Last Page Number");
...
...
myFoundItems[i].insertionPoints.lastItem().textVariableInstances.add( {associatedTextVariable : myVar} );
Peter
Technical Details
Message-ID:
<59b782b5.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossingReferences:
<59b782b5.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,ca3ed841f5ed21c8 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Peter Kahrel" <kahrel@kahrel.plus.com> Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Insert Text Variable Message-ID: <59b782b5.2@webcrossing.la2eafNXanI> Date: Wed, 14 Jan 2009 06:58:32 -0800 References: <59b782b5.-1@webcrossing.la2eafNXanI> Lines: 9 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Original-Lines: 12