🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8883

Re: find & replace fonts

#8883
From: Y._F._T
Date: Fri, 22 Sep 2006 07:38
21 lines
1808 bytes
Thank you, Shane and Olivier. Step by step, I see the Light !
So I took these lines, and it really works until the line with "superscript", because I need to delete all the find attributes to search for superscript characters, but don't know how to.

tell application "Adobe InDesign CS2"
	set find preferences to nothing
	set change preferences to nothing
	tell active document
		set myCharacterStyle to character style "italique"
		search with find attributes {font style:"Oblique"} with change attributes {applied character style:"italique"}
		set myCharacterStyle to character style "bold"
		search with find attributes {font style:"Bold"} with change attributes {applied character style:"bold"}
		set myCharacterStyle to character style "exposant"
		search with find attributes {position:superscript} with change attributes {applied character style:"exposant"}
	end tell
	set find preferences to nothing
	set change preferences to nothing
end tell

Moreover, how can we replace a paragraph style by another ? Is there a command "replace paragraph style "X" with paragraph style "Y" ?

Thanks a lot !
Technical Details
Message-ID: <3bc1af77.14@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!solnet.ch!solnet.ch!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-7-bit
From: Y._F._T@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!solnet.ch!solnet.ch!news.germany.com!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: find & replace fonts
Message-ID: <3bc1af77.14@webcrossing.la2eafNXanI>
Date: Fri, 22 Sep 2006 00:38:59 -0700
References: <3bc1af77.-1@webcrossing.la2eafNXanI>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit