Re: Searching for the equivalent of coercing to type "record"
Re: Searching for the equivalent of coercing to type "record"
- Subject: Re: Searching for the equivalent of coercing to type "record"
- From: Steve Cunningham <email@hidden>
- Date: Fri, 7 Mar 2003 19:58:34 -0500
>
You can still do it:
>
>
>
>
set _text to "home phone 123 work phone 234
>
cell phone 345 mega phone 999" -- make sure you have tabs!
>
>
set ls to paragraphs of _text
>
set _text to ls as string
>
set my text item delimiters to tab
>
set ls to text items of _text
>
set my text item delimiters to "\",\""
>
set _record to run script "{<<class usrf>>:{\"" & ls & "\"}} as record"
>
>
|work phone| of _record
>
--> 234
>
|mega phone| of _record
>
--> 999
You know, that just may work :-) And it works with mixed case too. And
the bars are actually kind of nice looking as highlights in the script.
Where do you guys get this arcane stuff, anyway :-)
Thanks again,
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.