How can I open a file in its default application from the command line?
For example if I have a file foo.doc, can I type command ./foo.doc into the CLI and have that file open in Word?
Note: on my linux machine, I would use xdg-open but that doesn't work on my Mac.
open -nopens a new instance, not a window. – Lri Aug 15 '12 at 16:37open .(or any directory name in place of.), which opens Finder (the default application for a directory). – Nathan Long Aug 15 '12 at 17:03