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 12:08:12 +0000
John McAdams wrote:
>
Confused one :-)
>
> 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
It's all my fault, you know. I have unleashed something that's like a cross
between Frankenstein's monster and Daffy Duck, since it was me who posted
the basic exploit here just before Christmas.
The above trick may or may not work for you: it exploits a bug in
AppleScript that can be used to pull some really nasty but incredibly
ingenious stuff - as demonstrated by Arthur.
In short: although AS is smart enough to prevent you from coercing a record
to a string (you would only hurt yourself), it doesn't stop you putting the
record within a list and coercing that instead. The result is a lot of
really weird looking stuff that is actually the raw data or something, and
if you're really clever (Arthur again) you can figure how to pick out the
useful bits from this.
One of these days Chris Nebel is going to patch this hole and break
Arthur's heart... but until that day comes our lad's having a total ball
with it.
(Or, the short answer is: your guess is as good as mine, bud.;)
has