Re: how do I hide other running applications?
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