Re: List Question: Can someone explain this to me?
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.