• 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: list question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list question


  • Subject: Re: list question
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 3 Jun 2003 11:00:30 -0700

On Tuesday, June 3, 2003, at 09:02 AM, dialup wrote:

set a to {"a", 1}
set b to a
set a's item 1 to "b"
return b

--> {"b", 1}
------------

but shouldn't b be {"a",1}?

No, you've run into the difference between "set" and copy.

set a to {"a", 1}
copy a to b
set a's item 1 to "b"
return b

--> {"a", 1}

See "Data Sharing" on page 206 of the Applescript Language Guide.

--Michelle

--
George Bush == Timothy McVeigh == Saddam Hussein
_______________________________________________
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.

References: 
 >list question (From: dialup <email@hidden>)

  • Prev by Date: Activate scripts at startup.
  • Next by Date: Re: list question
  • Previous by thread: Re: list question
  • Next by thread: Re: list question
  • Index(es):
    • Date
    • Thread