open -a TextEdit file.txt
open -e file.txt
open -t file.txt
open file.txt
. You can use the 'file' command to reveal what the operating system thinks the file type is: file file.txt
. So, for example, if you renamed 'file.txt' to just 'textfile' then open textfile
would still open it in the default text-file editing application, as long as file textfile
still thought that 'textfile' was actually a text file.open
can be found by running~/.profile
:Command Line Utilities
, allowed you to do:open -t README.txt
, but maybe I'm just suffering from inertia.edit
is a binary executable file (from the TextWrangler kit), not just an alias or symlink.