Script for application - a simple folder structure of files that will open in a web browser

ykk
New Contributor III

I would need a script where is in fact a simple folder structure of files that will open in a web browser. This should be configured as a desktop icon to explicitly open in Chrome browser

Note: Files are hosted locally .

2 REPLIES 2

talkingmoose
Honored Contributor II

First something like this command may be what you're needing:

/usr/bin/open -a '/Applications/Google Chrome.app' file:///Users/talkingmoose/

The problem with this is browsers may behave differently when opening the same URL. For example, Safari will open a dialog window displaying the folders and Google Chrome and Microsoft Edge will actually list the folder's enclosed directories and files in the browser itself.

What are you trying to accomplish?

ykk
New Contributor III

@talkingmoose I would need to package an application which should be made available as icon on the desktop, once when we click on, it should open the list of files (simple folder structure of files ) on the chrome browser