Re: Script Menu and "front" property
Re: Script Menu and "front" property
- Subject: Re: Script Menu and "front" property
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 15 Nov 2001 10:50:33 -0800
On 11/15/01 10:33 AM, "Allen Watson" <email@hidden> wrote:
>
In OS X's Script Menu, if I run this script:
>
>
tell application "Finder" to set wch to every process whose frontmost is
>
true
>
>
I get the result {"SystemUIServer"} instead of the process that was
>
frontmost when I invoked the script.
>
>
Is there a way to get the name of the process that was frontmost when I
>
selected the script from the menu?
Ah, the Heisenberg Principle at work again...
Probably we need something in app "System Events" that can index the various
processes from front to back in order, like the late lamented OneClick
could. Then you could just ask for 'process 2' to get the previously
frontmost process. Or just a way to set application "SystemUIServer" to
de-activate or go to the back of the line. Can't very well tell it to quit.
I guess this is one of those not-useful-on-this-list-feature-requests Chris
Nebel was mentioning yesterday...
--
Paul Berkowitz