• 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: so what's going on here?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: so what's going on here?


  • Subject: Re: so what's going on here?
  • From: Daniel Jalkut <email@hidden>
  • Date: Tue, 20 Feb 2007 10:59:07 -0500


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
http://www.red-sweater.com/blog/

 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Re: so what's going on here? (From: Paul Berkowitz <email@hidden>)
 >Re: so what's going on here? (From: Bill Briggs <email@hidden>)

  • Prev by Date: Re: so what's going on here?
  • Next by Date: System Events Keystroke
  • Previous by thread: Re: so what's going on here?
  • Next by thread: Re: so what's going on here?
  • Index(es):
    • Date
    • Thread