You can find Scriptable Text Editor here. In addition, if you need a small, fast, extremely scriptable text editor, check out Tex-Edit Plus. This $15 piece of shareware has a very understandable and powerful dictionary. One can place text, manipulate it, and then move it along. Sure, Microsoft Word is big and powerful, but Tex-Edit can be opened, scripted, and closed before Word even launches!