MACSCRPT Archives

May 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Mime-version:
1.0
Date:
Tue, 19 May 2009 13:47:52 -0700
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Content-type:
text/plain; charset="US-ASCII"
Subject:
From:
"Stockly, Ed" <[log in to unmask]>
In-Reply-To:
<p06230904c638c73bcb81@[128.253.187.23]>
Content-transfer-encoding:
7bit
Parts/Attachments:
text/plain (30 lines)
This works for me:

set recordList to {}
set oneRecord to {foo:1, bar:"hello"}
set the end of recordList to oneRecord
set twoRecord to {foo:2, bar:"Goodbye"}
set the end of recordList to twoRecord
recordList

HTH,

ES
 
> 
> set theRecords to {{foo:1, bar:"hello"}, {foo:2, bar:"Goodbye"}}
> foo of item 2 of theRecords
> --> 2
> 
> But how do you create such a list?
> 
> set recordList to {}
> set oneRecord to {foo:1, bar:"hello"}
> set recordList to recordList & oneRecord
> -->{foo:1, bar:"hello"}
> set twoRecord to {foo:2, bar:"Goodbye"}
> set recordList to recordList & twoRecord
> recordList
> -->{foo:1, bar:"hello"}
>  

ATOM RSS1 RSS2