Article View: adobe.scripting.indesign
Article #8878Re: (AS) Changing paragraph styles while replacing specific text in CS2
From: Shane_Stanley
Date: Fri, 22 Sep 2006 05:12
Date: Fri, 22 Sep 2006 05:12
12 lines
1341 bytes
1341 bytes
This should get you started:
tell application "Adobe InDesign CS2"
set find preferences to nothing
set change preferences to nothing
set theStyle to paragraph style "Bullet" of document 1
search document 1 for "x" replacing with "y" with change attributes
{applied paragraph style:theStyle}
end tell
--
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID:
<C139ADE8.30205%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.germany.com!news.isoc.lu!webcrossingReferences:
<3bc1bbbe.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,cf32fbcfdb5363de X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Shane_Stanley@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.germany.com!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: (AS) Changing paragraph styles while replacing specific text in CS2 Message-ID: <C139ADE8.30205%sstanley@myriad-com.com.au> Date: Thu, 21 Sep 2006 22:12:40 -0700 References: <3bc1bbbe.-1@webcrossing.la2eafNXanI> Lines: 14 Return-Path: <sstanley@myriad-com.com.au> User-Agent: Microsoft-Entourage/11.2.5.060620 Thread-Topic: (AS) Changing paragraph styles while replacing specific text in CS2 Thread-Index: AcbeBbnM+GVjm0n4Eduy3AARJHm3nA== MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit