Title: Re: Hiding inactive apps and command-H
On 12/14/00 9:12 AM, jay morris [EMAIL PROTECTED] wrote:

On 12/12/00 9:20 PM, "Bruce Klutchko" <[EMAIL PROTECTED]> wrote:

The question is, is there a way to cause the background application to be
hidden while switching? Right now, I use Switch-it, which works well. It
would be nice not having to use two separate utilities.

I have been wondering lately how many people use an extension or something
to either automatically hide inactive applications or provided a keyboard
equivalent to the hide others command in the finder menu.  Option-switch
will hide only the application you have just switched from of course, but I
don't find that very useful.

You could use OneClick or save the following Applescript as a compiled script and put it in the Universal Scripts folder associated with OSA Menu. I added \T to the script’s file name (Hide Others\T) which gives it the keyboard shortcut command-T. You may need to select another key if you are using this modifier for something else. Other modifier keys can be combined with this as per OSA Menu’s documentation. This is a modification of a script snippet Allen Watson posted on another list about a month ago.

tell application "Finder"
    set apps to every process whose visible is true
   repeat with anApp in apps
        try
           if name of anApp is not "Finder" and frontmost of anApp is not true then set visible of anApp to false
       end try
   end repeat
end
tell

This works for me under OS 9.04, OSA Menu 1.2.2.

Regards,
Jim Baskins

Reply via email to