• 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 14:58:21 -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.

  • Follow-Ups:
    • Re: How to tell frontmost app from Script Menu?
      • From: olivier <email@hidden>
  • Prev by Date: Re: Best way to auto rename files
  • Next by Date: audio recording question
  • Previous by thread: Re: Best way to auto rename files SORRY !
  • Next by thread: Re: How to tell frontmost app from Script Menu?
  • Index(es):
    • Date
    • Thread