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.
2.1m questions
2.1m answers
60 comments
57.0k users