Re: Why save text item delimiters? Philosophical question....
Re: Why save text item delimiters? Philosophical question....
- Subject: Re: Why save text item delimiters? Philosophical question....
- From: David Crowe <email@hidden>
- Date: Wed, 18 Jun 2003 08:58:39 -0600
Thanks to everyone for their discussion of this issue ... very
enlightening (particularly the "Story of Mel").
I've concluded that I'm neither right nor wrong. That there's a time
to save and restore, and there's lots of times when that's a waste of
time. Basically, you've got to know what you're doing and design
carefully.
The real flaw, I think, is that the "text item delimiters" are
essentially a global variable.
A syntax like :
set ls to text items of theString using "," as text item delimiters
would completely eliminate the problem (and this discussion).
[And Jon Pugh's reminder that "...as string" uses the text item
delimiters emphasizes the flaw, and also how setting the text item
delimiters back again might not do any good if you don't do it soon
enough!]
It would also be compatible with the current usage (i.e. specifying
it would override the global text item delimiters).
- David Crowe
_______________________________________________
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.