• 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: Removing characters from a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing characters from a string


  • Subject: Re: Removing characters from a string
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 05 Nov 2002 00:15:25 -0800

On 11/5/02 12:00 AM, "Kai Edwards" <email@hidden> wrote:

> The method checks each character of the name individually, lists the
> characters that pass the comparison test, and finally coerces the list to a
> string (truncating to 32 characters as necessary). Since it works quite
> happily without setting any TIDs, there's no need (IMO) to store or restore
> them. (It may not be as fast as using TIDs - but that's another issue.)

Ooops.

"finally coerces the list to a string", which it does by inserting the
current text item delimiters, whatever they may be, between each list item
when turning it into a string. That's precisely what tids DO.
So if he doesn't set them as he wants them - whether it was {", "}, {" "},
{""}, {return} or whatever, you just might end up with ":" between each list
item. or maybe "gopher" or "http" or "A very long sentence used as a
marker." Of course he has to set tids to {""} if he's trying to turn a list
of characters into a string with no interlopers.

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Removing characters from a string (From: Kai Edwards <email@hidden>)

  • Prev by Date: Re: Removing characters from a string
  • Next by Date: Re: Scriptable Video Importing??
  • Previous by thread: Re: Removing characters from a string
  • Next by thread: Re: Removing characters from a string
  • Index(es):
    • Date
    • Thread