I am looking for a way to have the browser reload
automagically when a file changes, mostly for unit testing. It's
not a big deal, it is just that I am getting tired of having
compile my flexunit unit tester do-dad, then switch over to the
browser, then press refresh. I would rather just leave the browser
in the corner, and have it refresh automagically, only paging over
to it when I actually want to look at something within it.
Basically, I would like one of two things to happen.
1) The browser notes that that the file underneath is
different than the one in history, and it reloads said file. I
suppose file changes could be noted by looking at timestamps on
files, or by writing random data to the file name (or presumably
some parts of its content) and comparing it to the "current"
version. And no, before you say it, I don't care that this is
inefficient, I am perfectly comfortable letting my computer seek
like once a second or so in order to read the status of a file.
2) Somehow, after re-compiling my unit test, a command is
then issued to the browser that says "hey, refresh so and so page".
This would be pretty neat.
So, if anyone has any ideas about how to do this, or even
better, has a solution to this problem, I would appreciate it. I
suppose I should mention that I use firefox 220.127.116.11 at the moment,
on ubuntu (7.10) linux. Thanks for your time.