Searching for the equivalent of coercing to type "record"
Searching for the equivalent of coercing to type "record"
- Subject: Searching for the equivalent of coercing to type "record"
- From: Steve Cunningham <email@hidden>
- Date: Fri, 7 Mar 2003 08:07:40 -0500
I have a tab-seperated text file of the form:
"field_name_x" (tab) "field value" (tab) "field_name_y" (tab) "field
value" (return)
"field_name_x" (tab) "field value" (tab) "field_name_y" (tab) "field
value" (return)
... etc
I know the set of possible field names, but not which will appear in any
given record or in what sequence
What I'd like to end up with is an AppleScript record of the form:
{field_name_x: "field value",field_name_y: "field value"}
It is trivial to get a list of the form:
{"field_name_x", "field value","field_name_y", "field value"}
Unfortunately the construct
{"field_name_x", "field value","field_name_y", "field value"} as record
doesn't exist as far as I can tell.
Does anyone have any suggestions for achieving the equivalent?
Thanks,
Steve
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.