Re: Name of Active Process
Re: Name of Active Process
- Subject: Re: Name of Active Process
- From: Joseph Weaks <email@hidden>
- Date: Thu, 17 Jun 2004 14:52:31 -0500
On Jun 17, 2004, at 11:56 AM, Paul Berkowitz wrote:
On 6/17/04 8:32 AM, "Joseph Weaks" <email@hidden> wrote:
My apologies for not cleaning up my examples to the bare minimum. They
included concatenations that I should have removed for clarity; thanks
for seeing past them.
As per standard practice among some, I, too, avoid Finder when I can,
but the problem is that "whose frontmost is true" can fail when run in
some environments:
tell application "System Events" to set frontProcess to name of first
process whose frontmost is true
-- run from the Apple script menu returns:
-- System Events
But, using Finder's "frontmost application" still works:
...
Ah, that's interesting. But that's NOT the Finder's 'frontmost
application'
- the only thing you're using the Finder for is 'displayed name' , as
someone said already. You're using 'path to frontmost application' - a
scripting addition.
Of course, you're right. I misspoke by attributing 'frontmost
application' to the Finder instead of the scripting addition. But the
point still remains... it's more reliable to use 'frontmost
application' than it is to use 'application whose frontmost' if what
you're wanting is the front application "from a UI perspective".
Thanks for the clarification,
Joe Weaks
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.