🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9549

Re: [JS CS2] How can I select a piece text and change a property

#9549
From: CariJansen
Date: Thu, 17 Aug 2006 14:58
17 lines
1107 bytes
You could look at using the TextCleanup Script provided with InDesign CS2.

{findText:"blurf"}  {appliedCharacterStyle:"characterStyleName"}  once apply style to 'blurf' 




Or script it:

 
var myDoc = app.activeDocument;  
var myStory = myDoc.selection[0].parentStory 

app.findPreferences=null; 
app.changePreferences=null;

var doFindChange = myStory.search("blurf", true, true, undefined, undefined, {appliedCharacterStyle:"CharacterStyleName"});  
Technical Details
Message-ID: <3bc14b71.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing
References: <3bc14b71.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,a75ff663f7b720a3
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: CariJansen@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: [JS CS2] How can I select a piece text and change a property
Message-ID: <3bc14b71.0@webcrossing.la2eafNXanI>
Date: Thu, 17 Aug 2006 07:58:09 -0700
References: <3bc14b71.-1@webcrossing.la2eafNXanI>
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing