Re: Convert first char to lower case
Re: Convert first char to lower case
- Subject: Re: Convert first char to lower case
- From: has <email@hidden>
- Date: Wed, 9 Jan 2002 00:24:19 +0000
Arthur J Knapp wrote:
>
Now, I would hate to confuse any newbies out there, but how does this
>
do for speed? ;-)
>
>
property kCharToNum : ({{_:0}} as string)'s text 1 thru -2
[snip]
Showoff. :p You're just trying to get folk into trouble, aren't you?
[<sigh> I can only blame myself, you know...]
-------
Nigel Garvey wrote:
>
The tests also show that if you run the test script too many times,
>
Script Editor crashes.
Oh goody, it's not just me noticed this problem then.
OK, so what I've worked out is that there is a problem with lines like the
following:
>
set AppleScript's text item delimiters to {character 1 of Variable1}
Seems TIDs are very fussy about what they get set to, at least when you do
a lot of it.
Try this and see if it makes a difference:
character 1 of Variable1
set AppleScript's text item delimiters to result
Or maybe this:
set AppleScript's text item delimiters to (character 1 of Variable1)
as string
Beyond that, I really don't know what's going on. Though I have the feeling
there's a bug report in there somewhere, just waiting to bust out.
--
Shane Stanley wrote:
>
>
> It's not often you'll see vanilla code outstrip an OSAX
>
>
Actually, it's been shown on this list many times that the opposite is very
>
often true.
Cool, I like being wrong. It means the other guy has to do all the work
educating me. Fire away - you've made me all curious now. :)
(Note: bug-exploiting hacks not included. i.e. Arthur, this means you! ;)
has