Article View: adobe.scripting.indesign
Article #18227Re: Delete text/runin problem
From: Olav Kvern
Date: Wed, 09 Apr 2003 15:51
Date: Wed, 09 Apr 2003 15:51
11 lines
1449 bytes
1449 bytes
Kari-- Another thought--if your original script works, but leaves spaces at the start of the affected paragraphs, why not finish up by searching for "^p " (a carriage return followed by a space) replacing with "^p" (a simple carriage return)? The only trouble with this approach is that you might end up with the wrong paragraph style applied to the preceding paragraph--this sometimes happens when you replace carriage returns. If that's the case, run the same search (for "^p ") and use scripting to delete the second character of each found item (the space). Olivier's idea will also work, provided there are not other occurrences of the colon character in your text (which might or might not be a safe assumption). Thanks, Ole
Technical Details
Message-ID:
<1de8a741.5@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de8a741.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,fb1e447d7f4ef9dc X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-04-09 09:08:12 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Delete text/runin problem Message-ID: <1de8a741.5@WebX.la2eafNXanI> Date: Wed, 9 Apr 2003 08:51:54 -0700 References: <1de8a741.-1@WebX.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit