Re: Faster List Checking
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.