• 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: Bryan <email@hidden>
  • Date: Wed, 28 Feb 2001 10:23:54 -0500
  • Organization: Apex Radiology

set theList to {"a", 1, "b", 2, "c", 3}
set theRecord to theList as user record
return theRecord
--> {a:1, b:2, c:3}

Bryan Kaufman

Simon Forster wrote:

> > I'm writing an AppleScript CGI and I thought that it'd be neat to use a record
> > to store name value pairs as I haven't used a record in anger before.
>
> And now I realise why I haven't used records before - you can only reference
> named properties.
>
> None-the-less, I'd like to know if it's possible to convert a list to a
> record just out of curiosity.
>
> ATB
>
> Simon Forster
> ________________________________________________
> LDML Ltd, 28 Montgomery Road, London, W4 5LZ, UK
> <tel int="+44 20 8995 5694" uk="020 8995 5694">
> <fax int="+44 20 8995 6013" uk="020 8995 6013">
> <mailto:email@hidden>
> ________________________________________________
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Follow-Ups:
    • Re: Records
      • From: "Serge Belleudy-d'Espinose" <email@hidden>
References: 
 >Re: Records (From: Simon Forster <email@hidden>)

  • Prev by Date: Re: global variable not being recognized by script object su
  • Next by Date: Re: Records
  • Previous by thread: Re: Records
  • Next by thread: Re: Records
  • Index(es):
    • Date
    • Thread