Re: frontmost in Leopard vs Tiger
Re: frontmost in Leopard vs Tiger
- Subject: Re: frontmost in Leopard vs Tiger
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 25 Jul 2008 16:29:46 -0400
- Thread-topic: frontmost in Leopard vs Tiger
on 2008-07-25 3:11 PM, Christopher Nebel at email@hidden wrote:
> That's a known issue with System Events in Tiger. Technically, your
> LSUIElement process *is* frontmost -- you can't really tell unless it
> has a window up, but it's there. Of course, this is not what most
> people want, so it changed in Leopard to return the frontmost "UI"
> process -- in other words, the one that owns the currently visible
> menu bar. "path to frontmost application" returns the frontmost UI
> process in both Tiger and Leopard.
As a footnote, it remains important for some purposes to be able to
'activate' a LSUIElement process, such as System Events itself. LSUIElement
processes sometimes do present dialogs or alerts, as Chris points out. Once
the LSUIElement process is activated, any dialog or alert that it presents
will have keyboard focus, allowing you to type into it or hit return
immediately without first clicking in it to bring it to the front.
Nevertheless, I haven't encountered any situation where I needed to ask
whether a LSUIElement process is frontmost, so the Leopard change Chris
describes seems perfectly appropriate.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
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