• 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: Emmanuel <email@hidden>
  • Date: Wed, 28 Feb 2001 08:44:12 -0600

>As an example, given a list of:
>
>{"name=fred", "path=1234"}
>
>How do I get to a record of:
>
>{name:"fred", path:"1234"}

You just need to know how to use "run script" :

-------------------- tested
set thePpty to "name"
set theValue to "fred"
run script "{" & thePpty & ":\"" & theValue & "\"}"
-- {name:"fred"}
--------------------

Note: if you are running Smile, use "do script" instead of "run script", it
will be much faster.

HTH

Emmanuel


References: 
 >Records (From: Simon Forster <email@hidden>)

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