Skip to main content
Question

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

  • August 15, 2019
  • 2 replies
  • 12 views

Forum|alt.badge.img+3
  • New Contributor

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

talkingmoose
Forum|alt.badge.img+36
  • Community Manager
  • August 15, 2019

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?


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • August 15, 2019

@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