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: Wed, 26 Dec 2001 15:32:35 +0000
I wrote on 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.
Kai has pointed out to me off-list (having checked out my statement for
himself) that coming to to the front is actually based on launch order.
When AppleScript is used to hide the frontmost application, the
application that comes to the front is the still-visible one that was
launched earliest and which is not the Finder.
My error was due to the early hour of the morning and my test apps having
coincidentally been launched in reversed alphabetical order. Apologies.
:-\
NG