• 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: frontmost application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: frontmost application


  • Subject: Re: frontmost application
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 30 Nov 2005 08:37:12 -0800

On Nov 29, 2005, at 2:07 PM, Daniel Jalkut wrote:

Hi Luther. This is a side-effect of the fact that Apple's Script Menu asks System Events to handle script execution, and it always (I think!) becomes frontmost to execute the script.

I'm not sure if there is a scripting way of getting the name of the "app that possesses the menu bar," ...

As of 10.4, there is: perversely enough, it's "path to frontmost application". (All right, that really gives you a reference to the application file. Getting the name from this is left as an exercise for the reader.) System Events was not updated to use the newer (and generally more useful) API, but there's a bug filed on that.



--Chris Nebel AppleScript and Automator Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >frontmost application (From: Luther Fuller <email@hidden>)
 >Re: frontmost application (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Path to folder list
  • Next by Date: Re: Path to folder list
  • Previous by thread: Re: frontmost application
  • Next by thread: Re: frontmost application
  • Index(es):
    • Date
    • Thread