Re: what happened to Mail's scripts menu?
Re: what happened to Mail's scripts menu?
- Subject: Re: what happened to Mail's scripts menu?
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 16 Jul 2005 20:17:37 -0700
- Thread-topic: what happened to Mail's scripts menu?
On 7/16/05 8:07 PM, "Jim Witte" <email@hidden> wrote:
>
> On Jul 16, 2005, at 7:19 PM, Shane Stanley wrote:
>> One very important reason for the application specific-menus is
>> performance:
>> scripts usually run considerably faster from application-specific
>> menus. In
>> a lot of apps, that can make a huge difference.
>
> Why is this? I'd think that either the app or the system would be
> invoking the same RunOSA (or whatever) function.. Unless they're are
> repeatedly called callbacks involved, I can't see why there would be
> any difference..
Script menus run from an application and targeting that application do not
need to queue up to send AppleEvents to other applications, and are thus
much faster, as Shane says. They send all such commands to 'current
application'. (You can see this for yourself by removing the tell block
targeting the application from such scripts.) At least this is true when
compared to applets, and used to be true compared to system script menu too.
I have a vague recollection that Chris Nebel stated that they had done
something to the system Script menu in either Panther or Tiger that removed
the impedance you otherwise get running scripts from the outside, and that
they wouldn't be slower than run from an app's script menu. But my
recollection is vague - I don't know for certain that 1) Chris said just
that, and 2) it's true in all regards.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden