Re: Why doesn't this cause an error?
Re: Why doesn't this cause an error?
- Subject: Re: Why doesn't this cause an error?
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 25 Sep 2002 12:21:04 -0700
On 9/25/02 11:49 AM, "Mr Tea" <email@hidden> wrote:
>
Thanks for your contribution to the 'How am I doing' thread. I had spotted
>
the semantic error you pointed out and fixed it with your first solution. As
>
for the 'better' solution, 'set theFields's end' was just too icky to even
>
consider. I suppose that I could change the variable name...
But 'set someList's end' to a list item, including an item that's record, is
ALWAYS better than concatenating, Nick. You shouldn't disparage it.
Concatenating lists uses memory and forces AppleScript to make a brand new
list each time. 'set to end' doesn't. So this won't matter much if you're
just doing it once or twice, but in a repeat loop it's _much_ better to use
the better solution. Now, what exactly do you mean by "icky"?
--
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.