On OS X I sometimes open files from the command line using this syntax: open -a tText filename.txt When I do this with tText, it opens the file and then replaces the text in the file with whatever is in my clipboard.