🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8276

(AS) Changing paragraph styles while replacing specific text in CS2

#8276
From: lowJackson
Date: Sat, 21 Oct 2006 19:36
11 lines
1095 bytes
Hi

I dug this script out of the archive as it's almost what I need...

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

However, I need to replace "x" with "" (nothing at all) when I try this it skips the find/replace but still changes the formatting?

thanks

low
Technical Details
Message-ID: <3bc20a5e.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,535b2577587530b5,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: lowJackson@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: (AS) Changing paragraph styles while
 replacing specific text in CS2
Message-ID: <3bc20a5e.-1@webcrossing.la2eafNXanI>
Date: Sat, 21 Oct 2006 12:36:48 -0700
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing