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: Mark Lively <email@hidden>
- Date: Tue, 3 Jan 2006 20:56:08 -0500
On 1/3/06, Michelle Steiner <email@hidden> 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.
>
> 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?
Once upon a time they were the same.
But this was when I first started scripting...
_______________________________________________
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