• 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: Michelle Steiner <email@hidden>
  • Date: Tue, 3 Jan 2006 18:47:40 -0700

On Jan 3, 2006, at 6:34 PM, kai wrote:

What is the matter with using "text" instead of "characters" and coercing to a string?

Not much - if you really want a string, Michelle. The point we were really making is that, since we're already dealing with text, it's generally preferable (for reasons of efficiency and robustness) to use <text x thru y> rather than <characters x thru y as string>.

But just about everyone was using "characters" and then casting to text rather than using "text" directly.


characters 4 through end as text (or string)
"" & characters 4 through end

Instead of

text 4 through end

And is there really any difference, other than writing style, between using through end and through -1?

--
"Never ask a man what computer he uses. If it's a Mac, he'll tell you. If it's not, why embarrass him?" --Tom Clancy


_______________________________________________
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>
    • Re: How do I delete the 1st three characters from a variable
      • From: "Mark J. Reed" <email@hidden>
    • Re: How do I delete the 1st three characters from a variable
      • From: Mark Lively <email@hidden>
References: 
 >Re: How do I delete the 1st three characters from a variable (From: Shane Stanley <email@hidden>)
 >Re: How do I delete the 1st three characters from a variable (From: kai <email@hidden>)
 >Re: How do I delete the 1st three characters from a variable (From: Michelle Steiner <email@hidden>)
 >Re: How do I delete the 1st three characters from a variable (From: kai <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