Re: Case handling inconsistency...
Re: Case handling inconsistency...
- Subject: Re: Case handling inconsistency...
- From: Arthur J Knapp <email@hidden>
- Date: Sat, 26 Jan 2002 17:30:01 -0500
>
From: Mr Tea <email@hidden>
>
Subject: Case handling inconsistency...
>
Date: Sat, 26 Jan 2002 18:08:50 +0000
>
I noticed that while AppleScript generally deals with strings in a non-
>
case-sensitive way (unless specifically instructed to consider case) this
>
is not what happens when AppleScript's text item delimiters are set to a
>
string. In that event, case is always considered, even, it seems, when
>
'ignoring case' is invoked.
I'm sure the original intent of the text item delimiters was to do the
sort of things that Apple uses as examples, ie:
set nameString to "Jack, Jill, Hill"
set text item delimiters of AppleScript to ", "
set nameList to every text item of nameString
-- > { "Jack", "Jill", "Hill" }
Setting the tids to a letter-character was not likely to have been
on the AppleScript team's mind.
If you want to talk about true inconsistency, consider the "offset of"
scripting addition command. Here, the whole point is to work with
textual content, not just punctuation, and yet there is no "ignoring
case" parameter.
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
<
mailto:email@hidden>
try
<
http://www.acmetech.com/>
on error number -128
end try
}