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: Michelle Steiner <email@hidden>
- Date: Tue, 3 Jan 2006 17:23:10 -0700
On Jan 3, 2006, at 4:30 PM, kai wrote:
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.
The result of such a coercion is also dependent on the current
value of AppleScript's text item delimiters. This can (and
occasionally does) catch folks out - especially if they're not
fully aware of the implications.
What is the matter with using "text" instead of "characters" and
coercing to a string?
text 4 through end of myImageName
or
text 4 through -1 of myImageName
--
"So why did you do it?
"Cause I was told not to"
_______________________________________________
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