• 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 Skinner <email@hidden>
  • Date: Wed, 25 Sep 2002 16:12:27 -0400

<speaking when not spoken to>

I think his response was to the ill-fit of the variable named 'theField' with the term 'the end'. It isn't very appropriate. Not to mention that using the word 'the' in a variable name would cause Cal to squirm and writhe in pain.

</speaking when not spoken to>

On Wednesday, September 25, 2002, at 03:21 PM, Paul Berkowitz wrote:

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
--
Paul Skinner
_______________________________________________
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: Bill Briggs <email@hidden>
    • Re: Why doesn't this cause an error?
      • From: Jon Pugh <email@hidden>
References: 
 >Re: Why doesn't this cause an error? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Why doesn't this cause an error?
  • Next by Date: Seybold Keynote Question: AppleScript
  • 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