• 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: 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.

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

  • Prev by Date: Re: List from text
  • Next by Date: Re: Table Server with greater than 40 cells?
  • Previous by thread: Rules of the Scripts Folders in OS X
  • Next by thread: Re: List from text
  • Index(es):
    • Date
    • Thread