• 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: Shane Stanley <email@hidden>
  • Date: Wed, 04 Jan 2006 10:08:00 +1100
  • Thread-topic: How do I delete the 1st three characters from a variable

On 4/1/06 9:57 AM, "Matt Deatherage" <email@hidden> wrote:

> The following also work, don't change upon compiling, and are clearer to read
> (also IMHO):
>
>> set mynewimagename to text 4 through end of myImageName --Mark Lively
>> set mynewimagename to (characters 4 through end of myImageName) as text

Ignoring the opinion about -1 vs end (which I disagree with, but again only
as a matter of opinion), these two are quite different. The latter is more
inefficient -- it creates an unnecessary list and then coerces it -- and it
also potentially raises issues if myImageName is Unicode text by virtue of
its coercion to string class.

--
Shane Stanley <email@hidden>



 _______________________________________________
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: kai <email@hidden>
References: 
 >Re: How do I delete the 1st three characters from a variable (From: Matt Deatherage <email@hidden>)

  • Prev by Date: Re: How do I delete the 1st three characters from a variable
  • 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