Re: List from text
Re: List from text
- Subject: Re: List from text
- From: Bill Briggs <email@hidden>
- Date: Fri, 4 Jul 2003 11:26:07 -0300
Without taking time to think about it, this gets you there (but
there's a last list item that's empty)
set x to "zzz.jpgaaa.jpgwww.jpgqqq.jpg"
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to {"jpg"}
set y to text items of x
set AppleScript's text item delimiters to {"jpg "}
set z to y as text
set AppleScript's text item delimiters to {" "}
set nameList to text items of z
set AppleScript's text item delimiters to tid
nameList
- web
At 2:14 PM +0100 04/07/03, John Clark wrote:
Can I create a list from a text string generated in Filemaker 4 ?
Tell app "filemaker"
Set x to cell "text"
--returns "zzz.jpgaaa.jpgwww.jpgqqq.jpg"
End tell
What I need to return is {zzz.jpg, aaa.jpg, www.jpg, qqq.jpg}
Thanks
John Clark
_______________________________________________
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.
_______________________________________________
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.