How to tell frontmost app from Script Menu?
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.