Re: Quitting all active applications
Re: Quitting all active applications
- Subject: Re: Quitting all active applications
- From: Martin Stoufer <email@hidden>
- Date: Thu, 28 Aug 2008 09:46:55 -0700
- Organization: LBNL
A small app that utilized an NSTask object whose system command would be
'killall -u <your short username here> -m <regex>'.
Where the regex would probably exclude processes that did not include
'login' or anything 'launchd'. This would keep the reaper from killing
your loginwindow process as well!
Phil Faber wrote:
Yes I agree it could be most annoying in the majority of cases to quit
other people's apps!
All I'm trying to achieve is a tiny app that only quits open apps and
then quits itself; the purpose being when I want to release as much
memory and disc space as possible before I run another memory /
processor intensive app. I could just quit each one individually but
I guess I'm lazy!
I'm not suggesting anything more sinister!
Thanks to you & everyone for the advice.
Phil
On 28 Aug 2008, at 12:12, Rob Keniger wrote:
On 28/08/2008, at 8:36 PM, Phil Faber wrote:
Is there a simple way to quit all running applications?
Basically I want to achieve the same result as the first stage of
hitting 'shut down' (closing all applications) without actually
shutting down the system.
You could get the launched applications by using [[NSWorkspace
sharedWorkspace] launchedApplications] and then send each of them a
Quit Apple Event.
But why would you want to do this? It is possibly one of the most
annoying things you could do to someone's machine and you would want
to have a very, very good reason for it.
--
Rob Keniger
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
* Martin C. Stoufer *
* ISS/IT *
* Lawrence Berkeley National Lab *
* 510-486-5306 *
* MS 937-700 *
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden