🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9480

Re: [JS] selecting text frame by script label

#9480
From: Dave_Saunders
Date: Mon, 21 Aug 2006 20:22
7 lines
1023 bytes
Are you looking to get a reference to a text frame with a particular label? If the text frame of interest might be below the top level, you'll need to use allPageItems and iterate through the collection, but if it is freestanding in the document, then:

myDoc.textFrames.item("myLabel")

will give you the collection of all text frames that have said label. And if there's only one, then you're in fat city.

Dave
Technical Details
Message-ID: <3bc1574b.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing
References: <3bc1574b.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,eb01d6c7b25d7bcd
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: [JS] selecting text frame by script label
Message-ID: <3bc1574b.0@webcrossing.la2eafNXanI>
Date: Mon, 21 Aug 2006 13:22:55 -0700
References: <3bc1574b.-1@webcrossing.la2eafNXanI>
Lines: 11
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing