Open File with TextEdit from Command Line on OSX open -a TextEdit filename Then go download Notepad from the Mac App Store because TextEdit kind of sucks.