• 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: List from text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List from text


  • Subject: Re: List from text
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 4 Jul 2003 16:49:33 -0500

At 07/04/2003 14:14 +0100, John Clark wrought:

Can I create a list from a text string generated in Filemaker 4 ?

What I need to return is {zzz.jpg, aaa.jpg, www.jpg, qqq.jpg}
______________________________________________________________________

Hello John,

I usually use regular expressions for this sort of thing. The Satimage Osax's regex has come along nicely for Mac OS X:

http://www.satimage-software.com/en/soft9.html

(Which Mac OS are you using?)

set x to "zzz.jpgaaa.jpgwww.jpgqqq.jpg"

try
set findIt to find text "\\w+\\.jpg" in x with regexp, string result and all occurrences without case sensitive
on error
set findIt to false
end try

--> {"zzz.jpg", "aaa.jpg", "www.jpg", "qqq.jpg"}


Best Regards,

Christopher Stone
_______________________________________________
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.

References: 
 >List from text (From: John Clark <email@hidden>)

  • Prev by Date: PDF Services Require attached Printer?
  • Next by Date: Re: PDF Services Require attached Printer?
  • Previous by thread: Re: List from text
  • Next by thread: Re: List from text
  • Index(es):
    • Date
    • Thread