Okay, not sure if this is even possible to do locally. I’m using Mac OS X, and can do the following to open a remote web page with URL params:
open http://www.google.com?blah=haha
but when I try to do the same with a local file path, I get file not found errors. Is there a way to do something like this:
open file://localhost/path/to/my/file.html?blah=heehee
?
You should use AppleScript.
opencommand is for general purpose only: it opens that file(s) with that application, nothing more. Here you can find the right way: Open a local html file with url params through applescript