• 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
List Behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

List Behavior


  • Subject: List Behavior
  • From: John Mistler <email@hidden>
  • Date: Wed, 5 Mar 2008 11:38:29 -0800

I have discovered some peculiar behavior with lists. Can anyone help me understand why?

This works as expected:

set a to {{1, 2, 3}, {"x", "y", "z"}}
set b to item 1 of a
set c to item 1 of a
set c to c & {4}
log b --> {1,2,3}
log c --> {1,2,3,4}

but why does this happen?:

set a to {{1, 2, 3}, {"x", "y", "z"}}
set b to item 1 of a
set c to item 1 of a
set end of c to 4
log b --> {1,2,3,4}
log c --> {1,2,3,4}
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: List Behavior
      • From: "Steven D. Majewski" <email@hidden>
  • Prev by Date: Re: Sometime error -10006 copying a folder
  • Next by Date: Re: List Behavior
  • Previous by thread: re: Sometime error -10006 copying a folder
  • Next by thread: Re: List Behavior
  • Index(es):
    • Date
    • Thread