🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16801

How to set fill tint of text?

#16801
From: Christopher Drum
Date: Tue, 29 Jul 2003 23:18
21 lines
1886 bytes
Hi everyone -

I've gotten such great help from these forums lately, I thought I'd give it another go.

tell application "InDesign 2.0.2"
	tell document 1
		set findText to "�"
		set replaceColor to swatch "Black"
		set replacePosition to superscript
		set replaceTint to 20 as number
		set replaceFont to font "Copperplate Gothic Bold	Regular" of application "InDesign 2.0.2"
		search for findText with change attributes {position:replacePosition, fill tint:replaceTint, fill color:replaceColor, applied font:replaceFont}
	end tell
end tell

The above script works just great, except it won't set the fill tint to 20%. If I highlight a character and run a simple, separate script of "set fill tint of selection to 20" it works just right. So, I feel pretty secure that my syntax is right here, but it seems to just skip over my request to change the fill tint. Eliminating the variable for the fill tint and hard coding it into the change attributes doesn't work either.

What am I overlooking in this case?

Thanks in advance for any assistance the community can offer.
Christopher Drum
Technical Details
Message-ID: <1dea1e9a.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!skynet.be!skynet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,a97d14f00f9b8fbe,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-29 16:37:51 PST
From: "Christopher Drum" <christopher.drum@fds.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!skynet.be!skynet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: How to set fill tint of text?
Message-ID: <1dea1e9a.-1@WebX.la2eafNXanI>
Date: Tue, 29 Jul 2003 16:18:27 -0700
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit