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

Re: text to list


  • Subject: Re: text to list
  • From: Timothy Bates <email@hidden>
  • Date: Mon, 02 Dec 2002 01:52:59 +1100

> From: John Clark <email@hidden>
> Is there anyway I can convert text to a list.
>
> "102030405060708090" to {"1", "2", "3", etc}
>
> I've tried text delimiters but they won't allow me to use the " delimiter

set {oldTIDs, AppleScript's text item delimiters} to {AppleScript's text
item delimiters, {"0"}}
set a to text items of "102030405060708090"
set AppleScript's text item delimiters to oldTIDs
return a
--> {"1", "2", "3", "4", "5", "6", "7", "8", "9", ""}

Dr Timothy Bates <mailto:email@hidden>
Macquarie Centre for Cognitive Science (MACCS)
Macquarie University
Ph 61 (2) 9850 8623
Fx 61 (2) 9850 6059
_______________________________________________
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.

  • Follow-Ups:
    • Re: text to list
      • From: Paul Berkowitz <email@hidden>
References: 
 >text to list (From: John Clark <email@hidden>)

  • Prev by Date: text to list
  • Next by Date: OS X Folder Actions
  • Previous by thread: text to list
  • Next by thread: Re: text to list
  • Index(es):
    • Date
    • Thread