They haven't "turned into" anything--the Finder, absent any information from a resource fork, is making a best guess about what the file is based on the information the file provides, which is evidently very little. If something does not have a resource fork (and it won't if it has been moved around in various ways, including being shipped over the Internet or a trip to a FAT32 drive), and does not have an extension, but does have the executable bit set, Finder figures it must be a UNIX excutable and slaps the UNIX icon on it. If you try to open by double clicking, Finder will open the Terminal, Terminal will not see a proper command and either do nothing or open a new window with an error message. Generally speaking, adding the correct extension back to a file will fix it. Thus, I have a plain text file that was missing the .txt extension and for unknown reasons has the executable bit set (why some perfectly ordinary files get executable bits and others, quite properly, do not, is a mystery to me). Adding the .txt extension caused Finder to immediately slap the text preview icon on the file, and double clicking opened it in TextEdit.
I took a perfectly harmless plain text file, made it executable and removed its extension. The Finder of course then saw it as a UNIX executable file. While it is in this lamentable state, dropping it on the TextEdit icon will open it just fine.
Things get a bit more complex for a file that contains formatting information. You can still open it in TextEdit (which will open pretty much any file that contains text), but you may see the formatting information as "gobblety gook"--the actual text will still be in there and you can get it out as plain text, but all formatting is gone, it is the formatting that is displaying as ASCII characters instead of functioning as instructions to the program on how the text should be displayed. I suspect files that behave this way have been damaged/corrupted. I just took a .doc file, removed its extension, it opened just fine in Word and TextEdit. I then made it executable, it still opened just fine and even displayed a correct custom thumb in Finder. Determined to wreck it, I then stripped its resource fork. Finally it displayed the UNIX executable icon, but when dropped on either Word or TextEdit it again opened just fine. I even used a hex editor to go into the data fork of the file and remove the note that it was a Word file, but it STILL persists in opening correctly when dropped on either Word or TextEdit! So I'm not sure just how your doc files are getting damaged, but I'm sure that they are.
Francine
Francine
Schwieder