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

frontmost application


  • Subject: frontmost application
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 29 Nov 2005 15:36:25 -0600

I saved the following two liner as a script in the scripts menu

  tell application "Finder" to name of some process whose frontmost is true
  tell me to display dialog the result as text

If I run it from Smile, it correctly tells me that Smile is the frontmost application.
If I run it from the script menu, it ALWAYS tells me that System Events is frontmost.
I'm running OS 10.4.3. Is this true of earlier versions of the OS?


What I want, of course, is the application name that appears in the menu bar.
A direct approach to getting this ought to be as easy as something like ...
    name of menu item 2 of menu bar
Does anyone know of any documents that explain how to do this?
_______________________________________________
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


  • Follow-Ups:
    • Re: frontmost application
      • From: Emmanuel <email@hidden>
    • Re: frontmost application
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: check available remote machines? possible?
  • Next by Date: Re: frontmost application
  • Previous by thread: Re: check available remote machines? possible?
  • Next by thread: Re: frontmost application
  • Index(es):
    • Date
    • Thread