• 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: Case handling inconsistency...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
}


  • Prev by Date: Re: Newbie. How do I count "i"?
  • Next by Date: Re: Newbie. How do I count "i"?
  • Previous by thread: Re: Case handling inconsistency...
  • Next by thread: Re: Not so sure (was Re: Scott Norton is brilliant (was:
  • Index(es):
    • Date
    • Thread