🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9970

Re: Another Search - Change mystery

#9970
From: Kari Puikkonen
Date: Tue, 11 Jul 2006 21:27
14 lines
1073 bytes
Ok, this search and replace method works�

tell myDoc 
set myStyle to paragraph style myPara 
set myFinds to search with find attributes {applied paragraph style:myStyle, applied character style:myChar} 
	repeat with i from (count of myFinds) to 1 by -1 
		set theContents to (item i of myFinds) 
		set contents of character after last character of theContents to return 
	end repeat 
end tell

�but is my first approach even possible?

Kari
Technical Details
Message-ID: <3bc0e114.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing
References: <3bc0e114.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,dffdf51d64b6c44a
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII
From: "Kari Puikkonen" <kari.puikkonen@welho.com>
Newsgroups: adobe.scripting.indesign
Subject: Re: Another Search - Change mystery
Message-ID: <3bc0e114.2@webcrossing.la2eafNXanI>
Date: Tue, 11 Jul 2006 14:27:54 -0700
References: <3bc0e114.-1@webcrossing.la2eafNXanI>
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing