Article View: adobe.scripting.indesign
Article #9523How Do I Order/Sort Page Items?
From: bank5
Date: Wed, 16 Aug 2006 19:24
Date: Wed, 16 Aug 2006 19:24
13 lines
1081 bytes
1081 bytes
My page has multiple text frames and rectangle frames. I would like to use JavaScript to fill the frames, but am having trouble refrencing the exact frame that I want.
For example, using something like:
app.activeDocument.textFrames.item(0).contents = 'First Text Frame';
won't select the first (or top-left) text frame on the page.
Does anyone how I can do this? Can I label each textFrame and them reference them by
textFrames.item('FirstTextFrame').contents = 'First Text Frame';
I'm new to InDesign so thanks for any help!
Technical Details
Message-ID:
<3bc1493b.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,a22bdce5ccaafd9f,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: bank5@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: How Do I Order/Sort Page Items? Message-ID: <3bc1493b.-1@webcrossing.la2eafNXanI> Date: Wed, 16 Aug 2006 12:24:22 -0700 Lines: 16 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!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing