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: 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