Re: hash arrays and other mysteries
Re: hash arrays and other mysteries
- Subject: Re: hash arrays and other mysteries
- From: Chris Espinosa <email@hidden>
- Date: Fri, 19 Oct 2001 11:42:16 -0700
On Thu, 18 Oct 2001 13:57:37 -0400, Arthur J Knapp
<email@hidden> wrote:
>
> Date: Wed, 17 Oct 2001 18:43:13 +0100
>
> From: has <email@hidden>
>
> Subject: Re: hash arrays and other mysteries
>
>
> BTW, if you really want to be vanilla about it, you can use Standard
>
> Addition's "run script" instead of "do script". But it's much slower
>
> for
>
> some reason (I don't know why "run script" takes so much longer to
>
> compile
>
> and run a string of code than Smile's "do script" does). Though seeing
>
> the
>
> speed difference I think I'll be sticking with Smile myself.
>
>
The explanation usually given by those "in the know" is that the
>
AppleScript compiler has to be invoked during run-time, (rather than
>
once at compile-time), in order for the "run script" command to do it's
>
thing. This is where the appearent speed issues associated with "run
>
script" come from.
For full marks you should have noted that 'do script' executes the
script using the connection to AppleScript that Smile has already
established, while the 'run script' scripting addition fires up a
separate instance of the AppleScript component, so the full AppleScript
startup time must be suffered every time 'run script' is used. The
actual compile time of the script is minuscule compared to the startup
time of the component.
Chris