Article View: adobe.scripting.indesign
Article #203CS4 ID Mac: Using FindChangeByList.jsx to Apply Paragraph Styles
From: Stephen_Adams
Date: Fri, 03 Apr 2009 12:20
Date: Fri, 03 Apr 2009 12:20
4 lines
1303 bytes
1303 bytes
Novice to JavaScript... using the FindChangeByList, I want to do a series of GREPs to apply Paragraph styles according to the characteristics of the paragraphs imported from Word. I feel that I am making simple mistakes,any input will be welcome.
Here is a sample line to apply paragraph style "CB" to all paragraphs that are Arial, 8 pt, Regular, Left-aligned.
grep{findWhat:""} {appliedFont.Arial, fontStyle.Regular, pointSize.8, justification.leftAlign}{changeTo:"", appliedPargraphStyle.CB} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}Find all Arial 8pt Regular Left-aligned paragraphs and apply style named CB.
Technical Details
Message-ID:
<59b8801c.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,5f3bb301b63140f2,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Stephen_Adams@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: CS4 ID Mac: Using FindChangeByList.jsx to Apply Paragraph Styles Message-ID: <59b8801c.-1@webcrossing.la2eafNXanI> Date: Fri, 3 Apr 2009 05:20:55 -0700 Lines: 3 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Original-Lines: 12