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

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.

  • Prev by Date: Re: Searching for the equivalent of coercing to type "record"
  • Next by Date: Re: Simple request
  • Previous by thread: Re: Searching for the equivalent of coercing to type "record"
  • Next by thread: Re: Searching for the equivalent of coercing to type "record"
  • Index(es):
    • Date
    • Thread