• 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: Name of Active Process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name of Active Process


  • Subject: Re: Name of Active Process
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 17 Jun 2004 15:12:49 -0700

On 6/17/04 12:52 PM, "Joseph Weaks" <email@hidden> wrote:

>
>> 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".

Right. New in Panther. Thank you for pointing this out. Very good news.

What I find interesting, and good, is that they took the existing 'path to
frontmost application' addition and excepted "System Events" which in fact
is running the Script menu (but we all know that), to let it return the
2nd-frontmost process, the one in the front when the script isn't running.
And they left 'path to current application' (as well as 'first process whose
frontmost is true' in SE and Finder) to return "System Events", as is. This
makes good and clever use of the fact that they had an "extra" path lying
around. Both 'frontmost application' and 'current application' were
returning the same thing, and getting in the way when run from the script
menu. So 'frontmost' was re-assigned. Good thinking. You can still get the
other one by 'current application', or by 'process' in SE or Finder, if
that's what you need to know. Well done, AppleScript.

--
Paul Berkowitz
_______________________________________________
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.


References: 
 >Re: Name of Active Process (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Re: Name of Active Process
  • Next by Date: Re: quit the dock - possible?
  • Previous by thread: Re: Name of Active Process
  • Next by thread: Re: Name of Active Process
  • Index(es):
    • Date
    • Thread