• 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: Cleaninig Up Text in a FM Text Field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cleaninig Up Text in a FM Text Field


  • Subject: Re: Cleaninig Up Text in a FM Text Field
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 26 Jan 2001 19:23:01 -0800

On 1/26/01 2:30 PM, Kevin Morrison <email@hidden> wrote:

>I want to clean it up so that everytime it has ":," that it is replaced with
>only ":"
>
>This field might have this occurring in it 5 or 6 times. Any insights as to
>a quick clean up are much appreciated!

set TextToBeconverted to "this is a test:, this is only a test:, it is."
my convert(TextToBeconverted)

to convert(teststring)
set {TID, AppleScript's text item delimiters} to,
{AppleScript's text item delimiters, ":,"}
set teststring to text items of teststring
set AppleScript's text item delimiters to ":"
set teststring to teststring as string
set AppleScript's text item delimiters to TID
return teststring
end convert

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: Cleaninig Up Text in a FM Text Field
      • From: Jed Verity <email@hidden>
  • Prev by Date: Re: R23's Osaxen It's not me
  • Next by Date: Re: Test for multiples a character in a paragraph- Tex-Edit or OSAX
  • Previous by thread: Re: Cleaninig Up Text in a FM Text Field
  • Next by thread: Re: Cleaninig Up Text in a FM Text Field
  • Index(es):
    • Date
    • Thread