a TextEditor for Mac OS written from scratch in AppleScript