Re: Frontmost Application Problem
Re: Frontmost Application Problem
- Subject: Re: Frontmost Application Problem
- From: Christopher Nebel <email@hidden>
- Date: Thu, 24 Apr 2008 09:07:21 -0700
On Apr 24, 2008, at 5:51 AM, Luther Fuller wrote:
Yes, I'm using Tiger. (I'll be using Leopard tomorrow.) My script
compiling script compiles an application bundle with Script Editor,
then sets the value of LSUIElement in the Info.plist file. I do not
use LSBackgroundOnly.
I have just reread the definitions in BPRuntimeConfig.pdf and I'm
not sure, but I don't think I should be using LSBackgroundOnly. My
faceless applications usually need to 'display dialog ...'. Perhaps
you can clarify.
I wasn't saying that LSUIElement was wrong, just that it's not the
same thing as LSBackgroundOnly. I actually try to avoid the term
"faceless" these days because of the ambiguity between "UI element"
and "background only". An LSUIElement application has no menu bar,
but can still present UI, such as a "display dialog", and can be
activated. An LSBackgroundOnly application has no UI whatsoever:
telling it "display dialog" will fail, and activating it does nothing.
Since you really do want to present dialogs, LSUIElement is correct
(or at least not incorrect). An alternative would be to make it
background-only and tell some other application to display your
dialogs for you, such as System Events or Growl.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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