• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Minimizing current app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minimizing current app


  • Subject: Re: Minimizing current app
  • From: Nigel Garvey <email@hidden>
  • Date: Sat, 26 May 2001 11:46:37 +0100

Paul Berkowitz wrote on Thu, 24 May 2001 22:55:21 -0700:

>On 5/24/01 4:43 PM, "Scott Earleywine" <email@hidden> wrote:
>
>> I want to be able to do hit a key (or combination of) to minimize the
>> current/open/active application. Basically, I want to automate the
>process
>> of going to the upper-right menu and choosing 'Hide foo-app'.
>>
>> Can I use AppleScript to do this? If so, can someone help out with the
>> code?
>
>We don't call it minimize, but yes. First, get OSA Menu (free) at
>http://www.lazerware.com/ and install it.
>
>Then save as a compiled script:
>
> tell application "Finder" to set visible of (first process whose
>frontmost is true) to false

With Mac OSses 8.6 and 9.0.4, this will only work if there's another
visible process available to take over the frontmost slot. Otherwise it's
safer to activate the Finder or some other app first and then hide the
app you want to hide. Another convenient way of doing this manually is to
hold down the option (alt) key while selecting another app.

>You could also write a similar script to hide all applications.

This would be something like:

tell application "Finder"
activate
set visible of (every process whose visible is true) to false
end tell

Some processes run in the background and don't have a 'visible' property,
so trying to set it to 'false' would result in an error. The 'whose
visible is true' clause causes these processes to be excluded from the
process.

NG


  • Prev by Date: Re: Extract URLs using TIDs (how to?)
  • Next by Date: Re: automating e-mail replies
  • Previous by thread: Re: Minimizing current app
  • Next by thread: getting real numbers from string expressions
  • Index(es):
    • Date
    • Thread