Article View: adobe.scripting.indesign
Article #559Re: Finding fontStyle error....
From: Robert Tkaczyk
Date: Sat, 14 Mar 2009 14:05
Date: Sat, 14 Mar 2009 14:05
33 lines
1890 bytes
1890 bytes
From VB ObjectBrowser:
Property FindWhat As Variant
Member of InDesign.FindTextPreference
The FindTextPreference to find. as String or idNothingEnum enumerator
Property ChangeTo As Variant
Member of InDesign.ChangeTextPreference
The replacement ChangeTextPreference. as String or idNothingEnum enumerator
so you can't apply FontStyle and CharStyle to Properties awaiting for String type
You need to set formatting you looking for to fontStyle and appliedCharacterStyle
Property FontStyle As Variant
Member of InDesign.FindTextPreference
The name of the font style. as String or idNothingEnum enumerator
Property AppliedCharacterStyle As Variant
Member of InDesign.ChangeTextPreference
The character style to search for or change to. as String, CharacterStyle or idNothingEnum enumerator
There is no "appliedFontStyle" in VB so I'm not sure if it will be in JS ...
here is example in VB:
myInDi.FindTextFreferences.FontStyle = "Italic"
myInDi.ChangeTextPreferences.AppliedCharacterStyle = myDoc.CharacterStyles.Item("Italic")
robin
--
www.adobescripts.com
Technical Details
Message-ID:
<30013204B41F67D1C2C0B5A8D84D5A29@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b83590.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,4780730dcf709f0d X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Robert Tkaczyk <indesignscripts@wp.pl> Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Finding fontStyle error.... Message-ID: <30013204B41F67D1C2C0B5A8D84D5A29@in.webcrossing.la2eafNXanI> Date: Sat, 14 Mar 2009 07:05:56 -0700 References: <59b83590.-1@webcrossing.la2eafNXanI> Lines: 40 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) X-Antivirus: avast! (VPS 090313-0, 2009-03-13), Outbound message X-Antivirus-Status: Clean MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit