Re: list of (more than one) text item delimiters
Re: list of (more than one) text item delimiters
- Subject: Re: list of (more than one) text item delimiters
- From: Bill Briggs <email@hidden>
- Date: Tue, 16 Dec 2003 11:51:05 -0400
At 3:42 PM +0100 16/12/03, Brennan wrote:
Is it possible to use more than one text item delimiter at a time, for
example, given the timecode string,
"01:23:12.03"
I'd like to be able to use the delimiters {":", "."} to fish out all the
numerical values in one fell swoop.
set {HH, MM, SS, tt} to text items of myString
If this isn't possible, can someone explain what the thinking is behind
Applescript's text item delimiters being a list?
A bug? It's a long standing thing that you can't use more than one.
I haven't even checked to see if this has changed, but if you look at
the Text Item Delimiters Reprise in this column, there's an
explanation of the way they behave
http://maccentral.macworld.com/features/applescriptprimer34/ , not
only in AppleScript in general, but for a few applications.
I can't see that this has any uses whatsoever (unless they were being very
forward looking to a time when it will do what I expect).
You could do a multiple find and replace, if it worked.
Apologies if this has been asked before. Feel free to direct me to an
appropriate archive in lieu of a freshly written answer.
Done.
- web
_______________________________________________
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.