Re: Application Script Menus
Re: Application Script Menus
- Subject: Re: Application Script Menus
- From: "Nigel Garvey" <email@hidden>
- Date: Sat, 20 Dec 2008 13:35:38 +0000
Jon Pugh wrote on Thu, 18 Dec 2008 16:41:10 -0800:
>The most significant benefit of application script menus is that they run
>their scripts from within the application, resulting in significant speed
>increases due to lack of cross process messaging.
>
>This has no bearing on where the scripts are stored, but simply who is
>running them. They need to be run from the application's script menu to
>get this speed benefit.
Hmmm. True. :\ However, this benefit will very often be more than
cancelled out by the time it takes the user to think about whether or not
a particular application has its own script menu and then which script
menu contains the required script. (For instance, having just been
experimenting with the Scripts menu in PowerMail, it's taken me two or
three times as long to decide where the script is to start this reply to
your post in the digest!) Ideally, I suppose, from my point of view, an
application's "Scripts" menu should be called something else.
Cross-process messaging time can be reduced quite a bit by delegating
communications to 'run script':
script
tell application "Blah"
-- Do several interesting things.
end tell
end script
run script result
... or at least, that happens to be true at the moment....
NG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden