• 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
How to tell frontmost app from Script Menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to tell frontmost app from Script Menu?


  • Subject: How to tell frontmost app from Script Menu?
  • From: Dan Pouliot <email@hidden>
  • Date: Tue, 18 Feb 2003 10:31:09 -0500

I'd like to have a script menu script that can detect the frontmost app.
But whenever I run this script:

tell application "System Events" to set appFront to the name of (processes
whose frontmost is true)

AppFront is "System Events"

I'm pretty sure I understand why, because the Script Menu is part of
systemUIServer, which becomes the frontmost app when the Script Menu is
invoked. So does that mean that what I want to do is not possible?

Dan Pouliot
--
Visit WebmasterMac @
http://www.webmastermac.com/
_______________________________________________
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.

  • Prev by Date: SOAP calls
  • Next by Date: Re: 'sh: ping: command not found' error
  • Previous by thread: Re: How to tell frontmost app from Script Menu?
  • Next by thread: audio recording question
  • Index(es):
    • Date
    • Thread