MACSCRPT Archives

May 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Delacour <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 21 May 2009 00:07:24 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (16 lines)
At 16:36 -0400 19/5/09, Bill Steele wrote:

>... how do you create such a list?

Nobody seems to have mentioned just {x,y}:

set _r1 to {foo:1, bar:"hello"}
set _r2 to {foo:2, bar:"Goodbye"}
set _list to {_r1, _r2}
    --=> {{foo:1, bar:"hello"}, {foo:2, bar:"Goodbye"}}
set end of _list to {foo:3, bar:"vale"}
_list
    --=> {{foo:1, bar:"hello"}, {foo:2, bar:"Goodbye"}, {foo:3, bar:"vale"}}

JD

ATOM RSS1 RSS2