Re: how to hide the frontmost app?
Re: how to hide the frontmost app?
- Subject: Re: how to hide the frontmost app?
- From: email@hidden
- Date: Sun, 23 Dec 2001 22:36:47 -0600
At 03:20 +0000 12/24/2001, Nigel Garvey wrought:
>
Kai Edwards wrote on Sun, 23 Dec 2001 14:21:19 +0100:
>
>
>Have you tried temporarily hiding the applet?
>
...
>
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.
______________________________________________________________________
This is quite a frustrating problem. Since both OneClick and KeyQuencer are able to grab the application list in front-to-back order (rather than launch order), it's apparent that a relatively simple system call can accomplish the job. Why then is it not possible with AppleScript to get the process list in this fashion?
In terms of hiding the front app in a way useful to the task at hand, the only way I know of using AppleScript is to use the "Application Menu" osax. It will let you hide the front application just as though you'd option-selected the first item in the application menu.
KeyQuencer makes it easy:
menu application 1
OneClick is nearly as easy:
SelectMenu "[process]", 1
QuicKeys too can do the job.
Another option is OSA Menu, although the current release version has problems with MacOS 9.x. Hopefully Leonard Rosenthol will get that fixed; there are a whole lot of folks who won't be migrating to MacOS X anytime soon.
Best Regards,
Christopher Stone
______________________________
StoneWorks Computer Consulting
email@hidden