• 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: how do I hide other running applications?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do I hide other running applications?


  • Subject: Re: how do I hide other running applications?
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 13 Sep 2006 09:00:50 -0700
  • Thread-topic: how do I hide other running applications?

On Tue, 12 Sep 2006 23:39:02 -0700, Rob Ross <email@hidden>
said:
>I seem to have two choices, by calling -hideOtherApplications on
>either NSApplicaion or NSWorkspace. But neither seems to be working
>for me.

This may seem silly, but AppleScript does work here.

tell application "System Events"
    get every process whose name is not NameOfYourApp
    repeat with aProcess in result
        try
            set visible of aProcess to false
        end try
    end repeat
end tell

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Localization of Product name
  • Next by Date: Re: NSGlyph from Unicode
  • Previous by thread: how do I hide other running applications?
  • Next by thread: Localization of Product name
  • Index(es):
    • Date
    • Thread