• 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: Faster List Checking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Faster List Checking


  • Subject: Re: Faster List Checking
  • From: Steven Angier <email@hidden>
  • Date: Thu, 29 May 2003 08:39:16 +1000

On Thursday, May 29, 2003, at 06:48 AM, John Stewart wrote:

Actually you have it backwards, AppleScript's text item delimiters are in fact a list. The catch is they currently ignore anything other than the first item. AppleScript is smart enough to silently coerce "" to {""} when you use your example, not the other way round. :)

Try this in your script editor sometime -

return AppleScript's text item delimiters

--> {""}

That is the default, but try this

set applescript's text item delimiters to ""
return applescript's text item delimiters
--> ""

Setting text item delimiters to a string has two advantages over setting them to a single item list:
1. its faster (around 5-10%)
2. you will never leak away all your memory under Mac OS 9


Steven Angier
Macscript.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: Faster List Checking
      • From: John Stewart <email@hidden>
References: 
 >Re: Faster List Checking (From: John Stewart <email@hidden>)

  • Prev by Date: Re: applescripted login
  • Next by Date: Re: erasing a file or folder
  • Previous by thread: Re: Faster List Checking
  • Next by thread: Re: Faster List Checking
  • Index(es):
    • Date
    • Thread