I have a program which generates some html documentation. At the end of the script, I use the
open command to automatically view the page in the browser.
generate-document > index.html open index.html
However, after iterating on the code, I end up with numerous obsolete copies of
index.html open in my browser.
Is there a way (either from the command line, or within the browser) to say something like "if index.html is already being viewed refresh it, otherwise load it."?
generate-document > index.html open-or-reload index.html
Safari or Chrome specific methods are fine.