How can I open a file in its default application from the command line in OS X?
17
votes
1
answer
7022
views
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.
Asked by DQdlM
(1088 rep)
Aug 15, 2012, 04:01 PM
Last activity: Sep 6, 2018, 03:37 PM
Last activity: Sep 6, 2018, 03:37 PM