Article View: adobe.scripting.indesign
Article #16781Re: How to set fill tint of text?
From: Christopher Drum
Date: Sat, 02 Aug 2003 04:07
Date: Sat, 02 Aug 2003 04:07
17 lines
1612 bytes
1612 bytes
The following script worked really, really well for me.
tell application "InDesign 2.0.2"
tell active document
try
set find preferences to nothing
set change preferences to nothing
end try
set theStyle to (make character style with properties {name:"theStyle", applied font:font "Copperplate Gothic Bold" of application "InDesign 2.0.2", font style:"regular", position:superscript, fill color:swatch "C=0 M=100 Y=0 K=0", fill tint:30})
search for "o" with change attributes {applied character style:theStyle}
delete theStyle
end tell
end tell
Nice and short, and using a temporary character style keeps the settings tidy. The only question now is, am I painting myself into a corner by using character styles (and even swatches) that I then immediately delete at the end of the script? Will the document start returning errors about missing styles and swatches?
Technical Details
Message-ID:
<1dea1e9a.9@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1dea1e9a.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,a97d14f00f9b8fbe X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-01 21:37:56 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-06!sn-xit-09!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: How to set fill tint of text? Message-ID: <1dea1e9a.9@WebX.la2eafNXanI> Date: Fri, 1 Aug 2003 21:07:35 -0700 References: <1dea1e9a.-1@WebX.la2eafNXanI> Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit