Tag Info

New answers tagged

2

A non-specific approach is: osascript -e 'open location "file:///Users/me/index.html#my-anchor"'


6

Don't use the open command. Google Chrome: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome "file:///Users/me/index.html#my-anchor" Safari: osascript -e 'tell application "Safari" to open location "file:///Users/me/index.html#my-anchor2"'



Top 50 recent answers are included