I need some help with a very simple applescript. I need it to open a local URL on mac with a url parameter.
set str to "open -a 'Firefox' file:///Users/bob/Desktop/someFolder/index.html?val=28"
do shell script str
I can’t find a way to get the webpage to open with the parameters, it always just opens the .html.
Can someone help? Thanks
You may want to use Safari, which is scriptable:
The
opencommand is a general-purpose function, meant to open any file with any program. It will simply look for file location and ignore the rest of the string.