On Feb 20, 2007, at 5:58 AM, Bill Briggs wrote: This tells me Script Editor is the frontmost application when, for example, Eudora is frontmost. But only from the Scripts menu. Not from TypeIt4Me or FastScripts. FastScripts gets it right, whether it's iCal, Eudora, whatever.
Well - it sure does feel good to have FastScripts show up so many times in a thread, and always in a positive context :)
Seriously though, this is one area where I focused on making FastScripts as smart as possible, because I was seriously irritated with the context-switching effects of the Apple script menu. I'm sure my strategy is not perfect, but I go out of my way to avoid making FastScripts the frontmost application. The strategy is roughly:
1. Never become frontmost application. 2. OK, if the user is displaying a dialog from the script, become the frontmost application. 3. BUT set it back when the dialog is dismissed.
Apple's script menu has gotten progressively better over the years, but as far as I know they still switch process context (even if not visually anymore) to run scripts. Whether they add tricks to the scripting system to attempt to hide that fact from the scripter or not, it seems to me there will always be side-effects to this strategy that are unwelcome.
-------------- Daniel Jalkut
|