🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20523

Re: Insert Character in middle of selection

#20523
From: Jay Fraser
Date: Tue, 09 Jul 2002 00:10
26 lines
1498 bytes
Ooops. I mean "myCounter" 

 
-- I get this part  
tell myDocument  
			set myFoundItems to {}  
			set myFoundItems to search myDocument with find attributes {yudda:yudda}  
-- I know this part fixes a bug which chokes if nothing is found 
			try 
���	myFoundItems  
			on error  
				set myFoundItems to {}  
			end try  
			if (count myFoundItems) > 0 then  
-- this is where I get confused 
�			repeat with myCounter from (count myFoundItems) to 1 by -1  
					set myFoundItem to item myCounter of myFoundItems  
					set yudda to yudda yudda 
end repeat 
 

I know it works so I shouldn't complain, but I'd like to know what it's doing. I see the gears turning, but I can't tell how they mesh. 

Thanks! 

Jay
Technical Details
Message-ID: <ef98891.1@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newspump.sol.net!news.maxwell.syr.edu!newsfeed.rt.ru!rt.ru!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef98891.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,943e1fd1b0f09137
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-07-08 17:39:57 PST
From: "Jay Fraser" <jayfraser@yahoo.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newspump.sol.net!news.maxwell.syr.edu!newsfeed.rt.ru!rt.ru!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Insert Character in middle of selection
Message-ID: <ef98891.1@WebX.aaQKaf7vad4>
Date: Mon, 8 Jul 2002 17:10:17 -0700
References: <ef98891.-1@WebX.aaQKaf7vad4>
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit