• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: hash arrays and other mysteries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Select item# from the Special Menu
  • Next by Date: Re: Converting an applescript from 68k app to PPC
  • Previous by thread: Re: hash arrays and other mysteries
  • Next by thread: Re: hash arrays and other mysteries
  • Index(es):
    • Date
    • Thread