How to kill TextEdit from the command line

During writing some new software I channel diagnostics to TextEdit and graphics to Preview.
I make some changes, I get new TextEdit and Preview windows.
The problem is with TextEdit: after a few steps TextEdit's content would not change.
Then I need to abort it (making it active, command-q) and repeat the run.

I am wasting time on this, so I'd like a "kill TextEdit's_pid" instruction be part of my run-time
command. However, I can't get the pid of TextEdit by ps. If the terminal is active for ps to be issued,
TextEdit is necessarily not, so it will not show up.
I can't find a ps option that would list it.

Any idea, Unix folks?

Thanks
Mike-oz

PowerPC G5, Mac OS X (10.5.3)

Posted on May 31, 2008 3:11 AM

Reply
10 replies

Jun 3, 2008 1:08 PM in response to Miklos Somogyi

Mike-oz wrote:
Yep, this one is working. Just why the other form did not work? Certainly it was balanced double
quotes (10.5.3, tch, terminal).

Obviously something about how tsch handles quotes and escapes. Odd, I grant you:

echo " " "

" " "

echo " "



echo " " " "

" "

echo " " " "

<error>

This is on Tiger and I know tcsh on Tiger is buggy. I don't know about on Leopard. Have you considered bash?!

- cfr

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to kill TextEdit from the command line

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.