• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Counting Words and Characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Counting Words and Characters


  • Subject: Re: Counting Words and Characters
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 13 Jul 2001 10:01:57 -0700

On 7/13/01 10:15 AM, Arthur Cormack <email@hidden> wrote:

>Any suggestions?

set stringtochange to "The quick brown fox jumped over the dirty black
dog's head."
set wordtochange to "jumped"
set newword to "leaped"
set beforesnip to (offset of wordtochange in stringtochange) - 1
set wordlength to length of wordtochange
set aftersnip to beforesnip + wordlength + 1
set newstring to text 1 through beforesnip of stringtochange & newword &
text aftersnip through -1 of stringtochange

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re(2): Counting Words and Characters
      • From: "Arthur Cormack" <email@hidden>
  • Prev by Date: Counting Words and Characters
  • Next by Date: Re(2): Counting Words and Characters
  • Previous by thread: Counting Words and Characters
  • Next by thread: Re(2): Counting Words and Characters
  • Index(es):
    • Date
    • Thread