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

Re: How to tell frontmost app from Script Menu?


  • Subject: Re: How to tell frontmost app from Script Menu?
  • From: olivier <email@hidden>
  • Date: Wed, 19 Feb 2003 10:00:39 -0600

just a wild supposition here if you ask for the list of all process, isn't the list ordered in the order of which program was top last, which would mean that the frontmost app is the second in the list.

Olivier


On Tuesday, February 18, 2003, at 01:58 PM, Dan Pouliot wrote:

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.
_______________________________________________
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: 
 >How to tell frontmost app from Script Menu? (From: Dan Pouliot <email@hidden>)

  • Prev by Date: Re: Best way to auto rename files SORRY !
  • Next by Date: Re: 'sh: ping: command not found' error
  • Previous by thread: How to tell frontmost app from Script Menu?
  • Next by thread: How to tell frontmost app from Script Menu?
  • Index(es):
    • Date
    • Thread