• 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: what happened to Mail's scripts menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what happened to Mail's scripts menu?


  • Subject: Re: what happened to Mail's scripts menu?
  • From: Daniel Jalkut <email@hidden>
  • Date: Thu, 21 Jul 2005 13:27:25 -0700

How exciting - my app gets mention on AppleScript-Users, and I'm in the middle of a cross-country move when it happens ;) Sorry for the slow arrival... comments below:

On Jul 19, 2005, at 8:35 PM, Matt Neuburg wrote:

I just tried a simple script that asks Entourage for its name. Repeating 500
times takes about 9 seconds from the system script menu; repeating 10000
times from the app's script menu takes about 2 seconds. That's a very
artificial test, but it shows there's a big potential gap.

Now try it with FastScripts, which claims to do the context switch for you
beforehand (hence the "Fast" in the name). m.

Actually the context-switching behavior of FastScripts is much more about ergonomics than performance. What FastScripts does is *prevent* context switches where other script executors often mandate a context switch to themselves before running ascript, even if the script doesn't end up putting a dialog up or anything. This caused a very annoying blip when running zero-UI scripts in apps like Mail, to file messages for instance. The other thing I do is look for the appearance of windows from FastScripts' own context, meaning that the script has done something like a "display dialog" ... in those cases, I temporarily swap context out from the active app and then re-set it after the dialog is dismissed.


The "Fast" in the name is mostly because it represented my original purpose for writing FastScripts. I had never really gotten into using AppleScript, and thought that Apple's script menu was just the ticket, but when I found it unusably slow and clunky, I knew I needed to write my own. Early on I also did things like pre-loading all of the scripts at launch in an effort to make execution as quick as possible at trigger time. Now I take a compromised path of loading and keeping loaded any script that is triggered, which means faster launch time and repeated scripts don't need to be constantly reloaded as you trigger them.

Daniel

_______________________________________________
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


References: 
 >Re: what happened to Mail's scripts menu? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: what happened to Mail's scripts menu?
  • Next by Date: Re: associative lists [was Re: Choose from list]
  • Previous by thread: Re: what happened to Mail's scripts menu?
  • Next by thread: Milliseconds to "formatted time"
  • Index(es):
    • Date
    • Thread