In a text file I have several records delimited by paragraphs. For example:
{name:“Bob”,age:45}
{name:“John”,age:32}
When I read this file using the following code:
set theRecords to (read (choose file))
all of the quotes are escaped with back slashes. i.e. theRecords =
{name:"Bob",age:45}
{name:"John",age:32}
And then when I try to do something like:
set thePerson to paragraph 1 of theRecords
display dialog name of thePerson
I get an error that it can’t get “name”. Does anyone have any suggestions for me? Basically, I wish AS had some ultra high level command like:
set thePerson to record 1 of (read (choose file))