• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Records


  • Subject: Re: Records
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 01 Mar 2001 00:04:32 -0800

On 2/28/01 11:15 PM, "Emmanuel" <email@hidden> wrote:

> At 12:24 -0600 28/02/01, Olof wrote:
>>
>> 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})
>
> Alternately, and maybe less cryptic:
>
> -------------------------
> on usrf(theList)
> script
> {<<class usrf>>:theList}
> end script
> run script result
> end usrf
>
> usrf({"a", 1, "b", 2})
> -------------------------

Wow. Definitely less cryptic.

--
Paul Berkowitz


References: 
 >Re: Records (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Where is the Searchable Applescript-users Archive?
  • Next by Date: Re: I want to convert a list of integers to their negative self
  • Previous by thread: Re: Records
  • Next by thread: Re: Records
  • Index(es):
    • Date
    • Thread