macOS: How to open a local HTML file with URL parameters
3
votes
1
answer
3839
views
I want to start a Kantu web macro from the command line on Mac. Essentially this is as simple as opening the Chrome or Firefox browser with a local HTML page (which contains the macro code). All works fine on Windows. But on macOS, when I use
mac:~ open 'file:////Users/fabrice/Kantu/demoautofill.html?direct=1&close=1&savelog=demotestlog.txt'
Chrome starts, and the file URL gets opened, **but** the
'?direct=1&close=1&savelog=demotestlog.txt'
GET parameter part is lost.
So the question is: How to launch a local html file with GET parameters?
I found this post: https://stackoverflow.com/questions/7710803/open-a-local-html-file-with-url-params-through-applescript which uses AppleScript as a workaround, but it is for Safari, I need Chrome. Plus I would like to avoid using AppleScript, if possible.
Asked by Fabrice Zaks
(133 rep)
Sep 21, 2018, 09:56 AM
Last activity: Dec 25, 2021, 07:51 PM
Last activity: Dec 25, 2021, 07:51 PM