

But that also involves many steps to open the Disk Image, then view/edit the file, then close the Disk Image. You can also create an encrypted Disk Image to hold the TextEdit file. Then if you make changes you'd need to zip uo the new changed file and delete the old zip file. But then when you want to view the file again you basically have to unzip it, saving a copy of the file you can view. You can save the file as a zip file using encryption. If you really want to stick with TextEdit, it becomes more difficult to do. But if you put the file somewhere else, say on an external drive, and someone takes that drive and tries to open it, they wouldn't have the password. So while you are logged into your account on your Mac, you can open and close the file normally. You even get the option to save the password to your keychain. It actually encrypts the file, so it isn't just a lock, but real protection. Just go to File, Set Password and then you'll need a password to open the file again. Pages has a built-in password protection function. The best way to do this is to use Pages instead of TextEdit.
