Article View: adobe.scripting.indesign
Article #20521Re: Insert Character in middle of selection
From: Shane Stanley
Date: Mon, 08 Jul 2002 22:43
Date: Mon, 08 Jul 2002 22:43
19 lines
1339 bytes
1339 bytes
in article ef98891.-1@WebX.aaQKaf7vad4, Jay Fraser wrote: > 1) Can somebody explain the myCountItems routine? I've just cut-&-pasted it, > but I don't understand it. And I can't see it... > > 2) Why "insertion point -5"? I found it though trial and error, but I don't > understand the logic. Insertion point 1 is before character 1, so insertion point 5 is before chracter 5 -- after character 4. > > 3) Is there a more elegant way to do my error-checking? Looks OK to me... -- Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<B95052C2.357EE%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef98891.-1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,943e1fd1b0f09137 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-07-08 16:08:13 PST From: Shane Stanley <sstanley@myriad-com.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Insert Character in middle of selection Message-ID: <B95052C2.357EE%sstanley@myriad-com.com.au> Date: Mon, 8 Jul 2002 15:43:47 -0700 References: <ef98891.-1@WebX.aaQKaf7vad4> Lines: 22 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.3 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit