🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #558

Finding fontStyle error....

#558
From: thiyagus5
Date: Sat, 14 Mar 2009 13:50
19 lines
1207 bytes
Hi everyone,

I am just finding the font style "Italic" which is applied in the document. And replace it with newly created character style named "myCstyle". While running the script the character style is created but it shows some errors in finding. Find my CS3 MAC script below,

//----------
//Creating character style for applied font styles...

var myDoc = app.activeDocument;
var myCstyle = myDoc.characterStyles.add({name: Itl, fontStyle: "Italic"})

app.findTextPreferences.findWhat = app.appliedFontStyle("Italic");
app.changeTextPreferences.changeTo = myCstyle;

//-----------

Please look into and help me for this. Thanks in advance

Regards
Thiyagu
Technical Details
Message-ID: <59b83590.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,4780730dcf709f0d,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: thiyagus5@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Finding fontStyle error....
Message-ID: <59b83590.-1@webcrossing.la2eafNXanI>
Date: Sat, 14 Mar 2009 06:50:35 -0700
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit