So, this is what I need :
Let's say I have an index.html file.
index.html
How do I tell the terminal to open it using the default browser?
(Using AppleScript, BASH,...?)
from the directory containing index.html, try...
open ./index.html
the open command opens a file (or directory, or URL). open is included with MacOSx. specifics and options can be found using
man open
note: default application is determined via LaunchServices.
1.4m articles
1.4m replys
5 comments
57.0k users