🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8881

Re: find & replace fonts

#8881
From: Olivier_Berquin
Date: Fri, 22 Sep 2006 06:54
29 lines
1571 bytes
Shane,

If I understand the request of YFT, he would like to replace some text in italic by a character style whose the name is "italic".

YFT, you must make a "search with find attribute / replace with find attribute".
En fran�ais: tu dois penser � ce que fait la commande "rechercher/remplacer" d'Indesign. La fa�on de travailler ici est exactement la m�me.

So, maybe something like this:

 
tell application "Adobe InDesign CS2" 
	set find preferences to nothing 
	set change preferences to nothing

	tell active document 
		set myCharacterStyle to character style "StyleItalic"

		search with find attributes {applied font:"Times", font style:"Italic"} � 
			with change attributes {applied character style:myCharacterStyle} 
	end tell

	set find preferences to nothing 
	set change preferences to nothing 
end tell 




Oli.
Technical Details
Message-ID: <3bc1af77.12@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.germany.com!news.isoc.lu!webcrossing
References: <3bc1af77.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fa001c3c40e04d3b
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII
From: Olivier_Berquin@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.germany.com!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: find & replace fonts
Message-ID: <3bc1af77.12@webcrossing.la2eafNXanI>
Date: Thu, 21 Sep 2006 23:54:08 -0700
References: <3bc1af77.-1@webcrossing.la2eafNXanI>
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit