• 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: How do I delete the 1st three characters from a variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How do I delete the 1st three characters from a variable
      • From: Shane Stanley <email@hidden>
References: 
 >Re: How do I delete the 1st three characters from a variable (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: get size of available screen fails
  • Next by Date: Re: How do I delete the 1st three characters from a variable
  • Previous by thread: Re: How do I delete the 1st three characters from a variable
  • Next by thread: Re: How do I delete the 1st three characters from a variable
  • Index(es):
    • Date
    • Thread