• 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: Can someone explain this to me?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List Question: Can someone explain this to me?


  • Subject: Re: List Question: Can someone explain this to me?
  • From: Dave Glass <email@hidden>
  • Date: Thu, 13 Jun 2002 08:35:58 -0700

On 06/13/02 08:22, "email@hidden" <email@hidden> wrote:

> Setting n to m sets n as a reference to m. But I want n to be a copy of m
> that doesn't change when I change m. Obviously,
>
> set m to 5
> set n to m
> set m to n+2
> n
> --> 5
> m
> --> 7
>
> works. But lists aren't maths...
>
> The workaround that I've used is to duplicate the code that creates the
> Artwork list replacing the word "Artwork" with "ProductCode". That doesn't
> seem to me the "correct" way to do it though - even though it works.
>
> What magical class or coerce command am I missing? I tried 'as list'
>
I think you want: copy m to n

Instead of: set n to m

Regards,
Dave Glass
email@hidden
_______________________________________________
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.

  • Prev by Date: RE: List Question: Can someone explain this to me?
  • Next by Date: Re: List Question: Can someone explain this to me?
  • Previous by thread: RE: List Question: Can someone explain this to me?
  • Next by thread: Re: List Question: Can someone explain this to me?
  • Index(es):
    • Date
    • Thread