File type fixing AppleScript
Version: 1.0Type Fixer was originally written for Mac OS X, where sometimes plain text files without creator and type codes (such as those produced by TextEdit) are changed to SimpleText files, meaning that Classic will start up if you double click on the file.
Operating System: Mac OS X
The creator and type codes for any file ending with ".txt" will be changed to the unknown code "????". This changes the owner application back to TextEdit. Open the droplet in the AppleScript Script Editor, modify the codes and filter criteria as indicated in the script to suit your own needs, and then save it as either a Classic Applet for Mac OS 9 or earlier, or a Mac OS X Applet for Mac OS X.