Re: Speedup scripts
Re: Speedup scripts
- Subject: Re: Speedup scripts
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 16 Oct 2003 11:14:20 -0700
On 10/16/03 10:43 AM, "Rob Jorgensen" <email@hidden> wrote:
>
At 7:07 PM +0200 10/16/03, Sander Tekelenburg wrote:
>
> At 08:51 -0600 UTC, on 2003-10-16, Robert Poland wrote:
>
>
>
>> With the help of Christopher Stone and Emmanuel I
>
>> now have a script that when called will send the
>
>> "open" message, in Eudora, to "uce-ftc.gov". Now
>
>> I'd like for it to be faster.
>
>
>
> In my experience the fastest is to run it as a compiled script (not an
>
> applet) from Eudora's own Scripts menu. (Speed aside, considering the kind of
>
> script this seems the most logical place to store & call it from anyway.)
>
>
I concur. In Eudora 6/OS X, the compiled script executes in the blink
>
of my left eye when run from Eudora's script menu.
Scripts run from application script menus are directed directly to the
"current application". (You can even omit the 'tell' block and use raw codes
as an experiment to test this.) This is much much faster than sending Apple
Events form one application to another. The system script menu is run by
System Events, so always has to send inter-application Apple Events, just as
applets do - you save only the startup time of an applet.
In OS 8/9, OneClick and OSA menu in "less compatible" mode somehow put you
right into the relevant app as "current application" (OSA menu less
reliably). I'm not sure if the intention is eventually do something similar
in the system script menu for application-only scripts in the subfolders of
the "Applications" subfolder of "Scripts" folder, or whether this was a
"hack" not even possible in OS X, which I suspect is the case. So
application script menus will always be much faster. (There are several apps
which have had script menus a lot longer than Eudora, and the same is true
of them: fast.)
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.