Re: Re(2): Re(2): Counting Words and Characters
Re: Re(2): Re(2): Counting Words and Characters
- Subject: Re: Re(2): Re(2): Counting Words and Characters
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 13 Jul 2001 11:23:15 -0700
On 7/13/01 10:50 AM, "Arthur Cormack" <email@hidden> wrote:
>
Thank you Michele. This too will work, even if you don't know what
>
word number 5 is.
>
(... it's pretty obvious actually)
>
... but if the pattern was not unique in the line being analysed -
>
say, if word 5 also occurred earlier, or later on in the line ... it
>
could cause some trouble, no? if word 1 was the same as word 5, for
>
example, and we looked for the offset, we snip in the wrong place.
>
Am I being too stubborn?
No, you're not. That is the problem with 'offset', and it's why I never,
ever use it. Also, you have to know that AppleScript never allows certain
symbols, such as "/", ".", and several others, into its definition of
"word".
Can you explain what you want to do if the word-to-look-for occurs more than
once - which one(s) do you want to change?
--
Paul Berkowitz