I have many web projects that I develop on the localhost. Normally to get to these one has to navigate from the root directory or bookmark the url.
I want to be able to open an OS directory/folder in the default browser. So for example I right-click a 'project A' folder and choose 'open in browser' and go there directly. I would like to be able to specify the beginning of the url, so I can change file:///
to http://localhost/
or mymac.local/
.
I am imagining this could be done with Applescript but I'm not experienced in that. Is there any way to achieve this?
Best Answer
You can add a right click item via Automator. Open Automator and copy this workflow:
When you save it, it will appear in your right click menu under Services:
I'm not completely sure what you mean by changing the URL protocol, but I should be able to modify this to accomplish what you want