Re: How do I delete the 1st three characters from a variable
Re: How do I delete the 1st three characters from a variable
- Subject: Re: How do I delete the 1st three characters from a variable
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 04 Jan 2006 14:30:27 -0800
- Thread-topic: How do I delete the 1st three characters from a variable
On 1/4/06 6:02 AM, "Mark J. Reed" <email@hidden> wrote:
>> Or
>
> text 4 thru -1
That's back to the shorter way, which is fine as
>> AS goes. My
objection was to the violation of English grammar.
I think you'd better give up AppleScript then. There's lots like that.
>> It looks
>> like
you're counting "texts", which is fine if you're talking
>> about
individual historical documents, for instance, but not when
>> you're
talking about the text of a string.
It's a spurious pedantry at best,
>> admittedly. Side effect of the
English-ish syntax, is all.
Does this make you feel better about 'text'?:
the text from -4 to -1 of "whatever"
AppleScript understands, accepts and will compile this construction without
error, but compiles it to its preferred version
the text -4 thru -1 of "whatever"
showing you that this is in fact means the same thing as the upper version.
But you can go on writing the better English version if it makes you feel
better.
--
Paul Berkowitz
_______________________________________________
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