Re: Simple character substitution
Re: Simple character substitution
- Subject: Re: Simple character substitution
- From: "Nigel Garvey" <email@hidden>
- Date: Sun, 26 Jun 2005 21:20:14 +0100
Michelle Steiner wrote on Sun, 26 Jun 2005 11:54:46 -0700:
>set source to "this is the time for all good blah blah blah."
>set single to "l"
>set multiple to "llllll"
>set text item delimiters to single
>set interim to text items of source
>set text item delimiters to multiple
>set final to interim as text
>set text item delimiters to ""
>final
Just a heads-up for anyone else who, like me, hadn't noticed yet.
AppleScript's TIDs are now (in Tiger) governed by 'considering' and
'ignoring' conditions - but only, apparently, when dealing with Unicode
text. They still seem to be exclusively like-for-like when dealing with
plain text. If you want the old case-sensitive behaviour with Unicode,
you have to use 'considering case'.
The 'offset' command is also subject to 'considering' and 'ignoring'
conditions, but the kind of text doesn't seem to make any difference.
NG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden