Re: Records
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>) |