Article View: adobe.scripting.indesign
Article #383Re: Insert Text Variable
From: Harbs
Date: Wed, 25 Mar 2009 13:47
Date: Wed, 25 Mar 2009 13:47
16 lines
1057 bytes
1057 bytes
Sorry about that.
This should work...
chapNumVariable = doc.textVariables.item("Chapter Number");
textVariable =
xmlelement.insertionPoints.lastItem.textVariableInstances.add ();
textVariable.associatedTextVariable = chapNumVariable;
You can also create the associated text variable as a property when you
create it...
--
Harbs
http://www.in-tools.com
Technical Details
Message-ID:
<0218D869BFB0E76308A2FE64661F1B4C@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b85dab.-1@webcrossing.la2eafNXanI> <59b85dab.3@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,99d1c756d78047e4 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Harbs Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Insert Text Variable Message-ID: <0218D869BFB0E76308A2FE64661F1B4C@in.webcrossing.la2eafNXanI> Date: Wed, 25 Mar 2009 06:47:40 -0700 References: <59b85dab.-1@webcrossing.la2eafNXanI> <59b85dab.3@webcrossing.la2eafNXanI> Lines: 18 User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit