• 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 of (more than one) text item delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list of (more than one) text item delimiters


  • Subject: Re: list of (more than one) text item delimiters
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 16 Dec 2003 10:55:24 -0600

At 12:12 -0400 12/16/2003, Bill Briggs wrought:

About three years ago I tried to cajole Tom into putting support for multiple TIDs into Tex-Edit, but so far I haven't seen it show up. It could be useful in a number of instances.
______________________________________________________________________

For those who really need this ability now it can be had in the commercial osax Acme Script Widgets:

set theText to "01:23:12.03"

tokenize theText with delimiters {":", "."}

Acme Technologies Home: http://www.acmetech.com/
ASW Direct Download: http://software.acmetech.com/mac/scriptwidgets3.hqx

It runs $29.00 (For Mac OS X and Mac OS 9)

I've found it very useful over the years.

ccs

______________________________________________________________________

Acme Script Widgets 3.0 :
v3.0.1 Copyright ) 1994-2002 Acme Technologies
email@hidden

Acme replace: replaces occurrences of a string with something else.
Acme replace anything -- string or list of strings to search for.
in anything -- the string or list of strings to search in.
with string -- the replace string.
[all occurrences boolean] -- replace all occurrences? TRUE = replace all (default)
[case sensitive/insensitive] -- Consider case? (Default is sensitive.)
Result: anything -- original text item(s) with replacements.

change case: changes the case of (Roman) text.
change case
of anything -- text to modify. (string or list)
[to upper/lower/title case/sentence case/toggle case/who cares] --
type of transformation (upper case is default).
Result: anything -- original text with case changed.

combine lists: Groups Nth items from sublists together.
combine lists list of list -- List of lists.
Result: list of list -- Returns list of lists with items reorganized.

delete item: delete an item from a list
delete item small integer -- index of item to delete
from list -- list of items to delete one item from
Result: list -- list of items with one removed

insert item: insert an item into a list
insert item anything -- item to insert
into list -- insert item into this list
at small integer -- location to insert new item (1 = front of list)
Result: list -- list of items with new item added

join list: form string from list items with the delimiters inserted in between.
join list list of string -- list of text items to join.
with delimiters list -- list of delimiter items.
Result: string -- Returns the joined list as a string.

offset in list: search list items, returning found string9s index or next item.
offset in list list of string -- list of items to search.
of string -- the search string.
[returning next item boolean] -- returns the next item in the list. (default: return index)
[searching even items/odd items/all items] -- Default: check every item.
[case sensitive/insensitive] -- ignore case? (Default: case is significant.)
[exact match boolean] -- whole word matching only? (Default = true.)
Result: anything -- item number of target, or (optionally) the next item after the target.

offsets of: returns a list of offsets of one string in another.
offsets of string -- Search string.
in anything -- string or list of strings to search.
[case sensitive/insensitive] -- consider case? (default is sensitive; ie, case matters).
Result: list of list -- list of offsets where search string was found.

tokenize: Split text into a list of items at each delimiter.
tokenize string -- The text string to tokenize. (No limit on the size of this string.)
with delimiters list of anything -- A string or list of strings where text should be split. (255 character limit for each delimiter.)
[null tokens boolean] -- return null tokens (default is true, return them)
Result: list of list -- List of token strings.

trim: trim patterns of text off the ends of strings.
trim [anything] -- the patterns to trim. (string or list)
off anything -- the items to trim.
[from front side/back side/both sides] -- location to trim from.
[ignoring anything] -- string(s) to ignore.
Result: anything -- the trimmed text.

Acme sort: sorts a list of strings or a list of lists of strings
Acme sort list of anything -- List of things to sort.
[by item number small integer] -- 1-based index of item to sort on (1 is default)
[into ascending order/descending order] -- sort order. Ascending is default.
Result: list -- sorted list
_______________________________________________
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 of (more than one) text item delimiters (From: Brennan <email@hidden>)
 >Re: list of (more than one) text item delimiters (From: Michelle Steiner <email@hidden>)
 >Re: list of (more than one) text item delimiters (From: Bill Briggs <email@hidden>)

  • Prev by Date: Re: Complex HTML from Safari to Mail
  • Next by Date: Re: Strange iDisk name (e.g., name-1)
  • Previous by thread: Re: list of (more than one) text item delimiters
  • Next by thread: Re: list of (more than one) text item delimiters
  • Index(es):
    • Date
    • Thread