From: nospam on
In article <michelle-2B7F79.05435421032010(a)nothing.attdns.com>,
Michelle Steiner <michelle(a)michelle.org> wrote:

> > > > I'm just trying to give the guy some options for a force quit of all
> > > > applications. CMD - Option - ESC is only available in 10.5 and 10.6.
> > >
> > > I believe that it is available in all versions of OS X.
> >
> > Are you sure that Select All is available? Not in Tiger on my
> > machine though possibly I miss something here?
>
> Select All is not available, but shift-click is. So you can click on the
> first item, shift-click on the last, and have all of them selected.

not in the force-quit window it isn't, at least not in 10.4 or 10.5.
From: Jeffrey Goldberg on
On 2010-03-21 7:54 AM, Warren Oates wrote:

> kill -9 `ps x | grep -v grep | grep /Applications | awk '{print $1}'`

You don't need the "grep -v grep" part of the pipeline if you don't mind
a minor warning from kill about the process not being found.

And if you are going to use awk, then use its power so we don't need the
other grep either.

kill -9 `ps x | awk '$4 ~ /\/Applications/ {print $1}'`

(Don't try this at home, kids)

--
Jeffrey Goldberg http://goldmark.org/jeff/
I rarely read HTML or poorly quoting posts
Reply-To address is valid
From: Warren Oates on
In article <80n8biFl01U1(a)mid.individual.net>,
Jeffrey Goldberg <nobody(a)goldmark.org> wrote:

> And if you are going to use awk, then use its power so we don't need the
> other grep either.
>
> kill -9 `ps x | awk '$4 ~ /\/Applications/ {print $1}'`

Cool.
--
Very old woody beets will never cook tender.
-- Fannie Farmer
From: Warren Oates on
In article <210320101143584957%nospam(a)nospam.invalid>,
nospam <nospam(a)nospam.invalid> wrote:

> you can add a quit menu to finder via tinkertool, or whatever obscure
> command it uses to do it. i think you can also just send finder a quit
> event for a one time quit.

While we're doing cute tricks with ps:

killall `ps xc | grep Finder`

It's pretty safe, you can try it out. It's like doing a "relaunch" from
the Force Quit window.
--
Very old woody beets will never cook tender.
-- Fannie Farmer
From: Jolly Roger on
In article <80n8biFl01U1(a)mid.individual.net>,
Jeffrey Goldberg <nobody(a)goldmark.org> wrote:

> On 2010-03-21 7:54 AM, Warren Oates wrote:
>
> > kill -9 `ps x | grep -v grep | grep /Applications | awk '{print $1}'`
>
> You don't need the "grep -v grep" part of the pipeline if you don't mind
> a minor warning from kill about the process not being found.
>
> And if you are going to use awk, then use its power so we don't need the
> other grep either.
>
> kill -9 `ps x | awk '$4 ~ /\/Applications/ {print $1}'`
>
> (Don't try this at home, kids)

I've never cared enough about awk to bother, myself. I guess I'm lazy
like that. : D

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR