Re: Records
Re: Records
- Subject: Re: Records
- From: Olof <email@hidden>
- Date: Wed, 28 Feb 2001 10:24:54 -0800
Here's the easiest way to do it using only the standard additions:
__begin script__
to usrf(theList)
set n to {+class usrf;:theList}
run script "
to run (arg)
arg as record
end run " with parameters n
end usrf
usrf({"a", 1, "b", 2})
__ end script__
As the mailing list will undoubtedly choke on the chevrons, the second line
of the script is
set n to {<right-chevron>class usrf<left-chevron>:theList}
where
<right-chevron> is option backslash
<left-chevron> is shift option backslash
- Olof