Re: Accessing lasts characters of a string
Re: Accessing lasts characters of a string
- Subject: Re: Accessing lasts characters of a string
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 13 Mar 2008 12:36:07 -0400
No one is denying the utility or elegance of "characters of", only its
applicability to the problem at hand. The other option for extracting
a substring - text $range of - is simpler, has fewer dependencies on
global settings , and runs faster. It is, in short, superior in every
way as far as performing the task under discussion.
On 3/13/08, John C. Welch <email@hidden> wrote:
> On 03/13/2008 09:28 AM, "Luther Fuller" <email@hidden> wrote:
>
> > One last comment ...
> >
> > repeat 100000 times
> > -- (rest of characters of strA) as text -- 46 sec
> > text 2 thru -1 of strA -- 4 sec
> > end repeat
> >
> > Using 'rest of characters of ...' seems to be way slow!
>
> Depends on how you use it. I've yet to see where I need to use it 100K times
> in a script, and for ease of coding and maintenance, it's far more elegant
> than parsing the strings or repeating through them.
>
> --
> "Hard pressed on my right. My center is yielding. Impossible to maneuver.
> Situation excellent. I am attacking."
> - Ferdinand Foch at the Battle of the Marne
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden