• 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
Searching for the equivalent of coercing to type "record"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Searching for the equivalent of coercing to type "record"
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: path to selection
  • Next by Date: Meeting Location
  • Previous by thread: Re: Parsing emails to this group for unsupported characters
  • Next by thread: Re: Searching for the equivalent of coercing to type "record"
  • Index(es):
    • Date
    • Thread