🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18584

Re: Font troubles

#18584
From: Olav Kvern
Date: Fri, 14 Mar 2003 22:06
21 lines
1309 bytes
Shane--

For now, this is broken. As a workaround, you can use the search method--the following snippet returns a list of text style ranges.



tell application "InDesign 2.0.2" 
	set find preferences to nothing 
	set change preferences to nothing 
	tell active document 
		set myFont to applied font of text style range 1 of story 1 
		set myFoundItems to search with find attributes {applied font:myFont} 
	end tell 
end tell 




Thanks,

Ole
Technical Details
Message-ID: <1de849d3.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <BA978253.51BE7%sstanley@myriad-com.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,d55e360cbf900fea
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-03-14 14:08:05 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Font troubles
Message-ID: <1de849d3.1@WebX.la2eafNXanI>
Date: Fri, 14 Mar 2003 14:06:17 -0800
References: <BA978253.51BE7%sstanley@myriad-com.com.au>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit