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