summary of textedit problem

thush@www.lanka.com
Mon, 16 Mar 1998 09:13:02 +0600

Hi Sun-Managers,
Thanks for the people helped and specially for amjadz@sts.com.jo

Original Question :
How to get rid of backup file generated by textedit.

Solution :
Has to write a wrapper(script) which calls textedit inside.
The following is a ksh script which has some debugging lines
inside for the ones who are not familiar with ksh. Save the
following script in your working directory and give it a
exec permission and save as textedit_NOBK (or someother name
other than textedit)

But this textedit version deletes the opened file only if
the file is opened at the command line itself like follows.
$ textedit_NOBK filename
$ textedit_NOBK filename &

If you want to work it in other cases
$ textedit_NOBK
$ textedit_NOBK & AND then open in file menu you have to
customize the script.

Regds.
Thushara Wickramasinghe
thush@lanka.com