Re: How best to extract digits from a string?
Re: How best to extract digits from a string?
- Subject: Re: How best to extract digits from a string?
- From: Nigel Smith <email@hidden>
- Date: Fri, 27 Apr 2001 15:06:39 +0100
Jed wrote:
>
Moral of the story:
>
If you need to concatenate a single value to a string repeatedly, use the
>
"set end of <list>" method and convert to a string after the loop. If the
>
concatenated values are going to be different within each cycle of the loop,
>
use the standard "set str to str & <literal>" method. Right?
There also seem to differences with different versions of Applescript.
1.3.7 seems to use the list method faster than the string concat method,
while 1.5 (I think it's that, anyway) seems to take about the same time for
each -- both concating the string "Hello World, this is a bust, isn't it"
300 times.
So there's definitely more to this than "one is better than the other"...
Nigel