• 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: zapping gremlins
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zapping gremlins


  • Subject: Re: zapping gremlins
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 17 Apr 2001 09:21:53 -0700

On 4/17/01 8:49 AM, Erik Ness <email@hidden> wrote:

>Anyone have a boilerplate AS they can share for removing bad
>characters (control characters, primarily) from a block of text?

on stripGremlins(instring)
copy instring to testString
set tid to text item delimiters
repeat with I from 0 to 26
set charToStrip to ASCII character of I
set text item delimiters to charToStrip
set testList to text items of instring
set text item delimiters to ""
set instring to testList as text
end repeat
set text item delimiters to tid
return instring
end stripGremlins

--Michelle

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


  • Prev by Date: Re: Naming Quark boxes - screwed up!
  • Next by Date: Re: Random number generator without duplicates?
  • Previous by thread: Re: Naming Quark boxes - screwed up!
  • Next by thread: Re: zapping gremlins
  • Index(es):
    • Date
    • Thread