Article View: adobe.scripting.indesign
Article #18208Delete text/runin problem
From: Kari Puikkonen
Date: Tue, 08 Apr 2003 20:44
Date: Tue, 08 Apr 2003 20:44
26 lines
1362 bytes
1362 bytes
Once again my little gray cells are not working at all. I have a script which deletes all the words/characters before colon " : "? tell application "InDesign 2.0.2" set theChangeText to "" tell parent story of selection repeat with i from 1 to count of paragraphs try set contents of text from character 1 to (character 1 whose contents = ":") of paragraph i to theChangeText on error try set contents of text from character 1 to (character 1 whose contents = "?") of paragraph i to theChangeText end try end try end repeat end tell end tell ?but how could I also delete space character after the colon? Kari
Technical Details
Message-ID:
<1de8a741.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,fb1e447d7f4ef9dc,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-04-08 14:08:02 PST From: "Kari Puikkonen" <kari.puikkonen@welho.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!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: Delete text/runin problem Message-ID: <1de8a741.-1@WebX.la2eafNXanI> Date: Tue, 8 Apr 2003 13:44:40 -0700 Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit