• 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: stripping an extra character from a text item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stripping an extra character from a text item


  • Subject: Re: stripping an extra character from a text item
  • From: "Mark Martin" <email@hidden>
  • Date: Tue, 18 Dec 2001 17:09:56 -0500

Try this for stripping unwanted characters:

on Trim(cString)
set WhiteChars to " "
set Trimmed to false
repeat until trimmed
if character -1 of cString is contained in WhiteChars then
set cString to characters 1 thru -2 of cString as text
else
set Trimmed to true
end if
end repeat
return cString
end Trim


Mark Martin
The John Henry Company
Lansing, MI
USA


  • Follow-Ups:
    • Re: stripping an extra character from a text item
      • From: email@hidden
  • Prev by Date: RE: Broken script in 9.2.2
  • Next by Date: In a pickle with simple resize script
  • Previous by thread: stripping an extra character from a text item
  • Next by thread: Re: stripping an extra character from a text item
  • Index(es):
    • Date
    • Thread