Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Matthew Smith <email@hidden>
- Date: Thu, 02 Jan 2003 09:35:23 +1100
on 02/01/2003 06:48, Jerry Podhajsky at email@hidden wrote:
>
I'm sure this is really simple, but I can't seem to find any good
>
reference on it. I want to make a list of lists:
>
>
set d1 to {date "9/8/20", 1}
>
set d2 to {date "1/1/02", 2}
>
set d3 to {date "12/1/02", 3}
>
>
set masterlist to {}
>
>
set masterList to d1 & d2 & d3 -- yields a string concatenation of all
>
the list items.
>
>
The result I want is:
>
>
{{date "9/8/20", 1},{date "1/1/02", 2},{date "12/1/02", 3}}
I would have done:
set d1 to {date "9/8/20", 1}
set d2 to {date "1/1/02", 2}
set d3 to {date "12/1/02", 3}
set masterlist to {d1, d2, d3}
There's no need to create an empty list before creating the list.
--
Matthew Smith
_______________________________________________
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: | |
| >(no subject) (From: "Jerry Podhajsky" <email@hidden>) |