Re: how to hide the frontmost app?
Re: how to hide the frontmost app?
- Subject: Re: how to hide the frontmost app?
- From: Nigel Garvey <email@hidden>
- Date: Mon, 24 Dec 2001 03:20:19 +0000
Kai Edwards wrote on Sun, 23 Dec 2001 14:21:19 +0100:
>
Have you tried temporarily hiding the applet?
>
>
This would briefly return the previously frontmost app to the front - and
>
allow your script to get the necessary information about it. The applet
>
could then push itself the front again to complete the task.
I've been trying to work something along these lines since I read
Donald's query. It would be a simple task to hide the frontmost process
twice - once for the applet itself and again for the application that
came to front in it's place. Unfortunately, when I use AppleScript to
hide the frontmost application (Mac OS 8.6 and 9.0.4), the application
that comes to the front is *always* the one that comes last
alphabetically, whether it was previously the frontmost or not.
A non-scripting alternative would be to hold down the option key while
clicking on a window of the second-to-frontmost app (if one can be seen)
or while selecting the app from the application menu - very
straightforward if you use Application Switcher.
NG