• 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: Why doesn't this cause an error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Why doesn't this cause an error?
      • From: Mr Tea <email@hidden>
    • Re: Why doesn't this cause an error?
      • From: Paul Skinner <email@hidden>
References: 
 >Re: Why doesn't this cause an error? (From: Mr Tea <email@hidden>)

  • Prev by Date: Choose Folder - FMP field value to document
  • Next by Date: Re: iPhoto scripts - never mind
  • Previous by thread: Re: Why doesn't this cause an error?
  • Next by thread: Re: Why doesn't this cause an error?
  • Index(es):
    • Date
    • Thread