• 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: kai <email@hidden>
  • Date: Wed, 4 Jan 2006 02:42:51 +0000


On 4 Jan 2006, at 01:47, Michelle Steiner wrote:

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.

Yes, it's a fairly common approach. However, it may just be worth considering the alternative for the reasons mentioned.


(BTW, while some of the issues have been detailed, the performance implications haven't actually been quantified. In case you're wondering, 'text' executes here up to 200+ times faster than 'characters/as')

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

For most practical purposes in this context, I think you could safely consider it a style thang. (I use either - but that might be because of these dreadfully unpredictable mood swings...) ;-)


---
kai


_______________________________________________ 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: Michelle Steiner <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>)
 >Re: How do I delete the 1st three characters from a variable (From: Michelle Steiner <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