Article View: adobe.scripting.indesign
Article #15091Re: Changing the contents property of a word (IDCS)
From: Shane_Stanley
Date: Tue, 16 Dec 2003 21:33
Date: Tue, 16 Dec 2003 21:33
13 lines
1201 bytes
1201 bytes
OK, I see the problem. Try using this line: set contents of contents of myPriceHolder to "$PRICE" Your problem is that myPriceHolder is a reference to an item in a list, and the script is being interpreted as an attempt to set the contents of that item of the list, not the contents of what it refers to. This is a good reason to use the "repeat with i from ... to..." form of repeat instead of the "repeat with ... in ..." form. -- Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID:
<8C6BC8F6-300F-11D8-B005-003065D61B90@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccef3cf.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,6afd82e038dd93a1 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-16 13:37:58 PST From: Shane_Stanley@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Changing the contents property of a word (IDCS) Message-ID: <8C6BC8F6-300F-11D8-B005-003065D61B90@myriad-com.com.au> Date: Tue, 16 Dec 2003 13:33:54 -0800 References: <2ccef3cf.-1@webx.la2eafNXanI> Lines: 15 X-Mailer: Apple Mail (2.606) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit