Re: Case sensitivity of text item delimiters
Re: Case sensitivity of text item delimiters
- Subject: Re: Case sensitivity of text item delimiters
- From: "Nigel Garvey" <email@hidden>
- Date: Sun, 23 Oct 2005 20:49:09 +0100
Shane Stanley wrote on Sun, 23 Oct 2005 12:25:32 +1000:
>As has been mentioned here before, getting the text items of a Unicode
>string in 10.4.x is case sensitive, and responds to the considering/ignoring
>case statements. This also seems to be the case for 10.3.9. I can't find any
>documentation of this change, and I'm trying to find out when it was made.
>Anyone know? Anyone running earlier than 10.3.9 care to run the following
>and tell me what they get?
>
>set someText to "AAaa" as Unicode text
>set oldDelims to AppleScript's text item delimiters
>set AppleScript's text item delimiters to {"a"}
>set x to text items of someText
>ignoring case
> set y to text items of someText
>end ignoring
>considering case
> set z to text items of someText
>end considering
>set AppleScript's text item delimiters to oldDelims
>return {x, y, z}
To my great surprise, this in Jaguar 10.2.8 (AS 1.9.1)!
{{"", "", "", "", ""}, {"", "", "", "", ""}, {"AA", "", ""}}
I can't have tried it on this machine before. I just assumed the case-
insensitivity was new with Tiger.
Let's see. Yes! It's the same result in OS 9.2.2 (AS 1.8.3).
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