• 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: Best practices for creating and comparing lists of text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best practices for creating and comparing lists of text?


  • Subject: Re: Best practices for creating and comparing lists of text?
  • From: Emmanuel <email@hidden>
  • Date: Sat, 17 Dec 2005 16:09:23 +0100

At 1:22 PM +0000 12/17/05, has wrote:
And frankly, if the performance of this code isn't good enough then it'd make far more sense to switch to a better language.

... or (but that would have made has' post still longer) to use the Satimage osax.


on sati_parse_list(s)
-- add library name where it's missing
set s to change "^[^=]+$" into "\\0=\\0" in s with regexp
-- find first items
set Modulenames to (find text "^([^#].*)=" in s using "\\1" with regexp, string result and all occurrences)
-- find second items
set Libnames to (find text "^([^#].*)=(.*)$" in s using "\\2" with regexp, string result and all occurrences)
return {Modulenames, Libnames}
end sati_parse_list


Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Best practices for creating and comparing lists of text? (From: has <email@hidden>)

  • Prev by Date: [ann] ParserTools 0.2.0
  • Next by Date: Re: Best practices for creating and comparing lists of text?
  • Previous by thread: Re: Best practices for creating and comparing lists of text?
  • Next by thread: Re: Best practices for creating and comparing lists of text?
  • Index(es):
    • Date
    • Thread