🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18598

Re: Searching for text below a specific size

#18598
From: Olav Kvern
Date: Wed, 05 Mar 2003 23:01
26 lines
1515 bytes
John--

Here's an example (note that the font name is probably in the form familyName-tab-styleName, and that the property you want in find attributes is "applied font"):



set myItems to {} 
tell application "InDesign 2.0.2" 
	set find preferences to nothing 
	set myFontName to "Courier" & tab & "Medium" 
	set myFont to font myFontName 
	set myFoundItems to search active document with find attributes {applied font:myFont} 
	repeat with myCounter from 1 to (count myFoundItems) 
		set myItem to item myCounter of myFoundItems 
		if point size of item myCounter of myFoundItems is less than or equal to 9 then 
			copy item myCounter of myFoundItems to end of myItems 
		end if 
	end repeat 
end tell 




Thanks,

Ole
Technical Details
Message-ID: <1de82916.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de82916.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,179c70e89ed74b5b
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-03-05 15:07:41 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Searching for text below a specific size
Message-ID: <1de82916.1@WebX.la2eafNXanI>
Date: Wed, 5 Mar 2003 15:01:14 -0800
References: <1de82916.-1@WebX.la2eafNXanI>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit