I have a perl text that from time to time rewrites a .html file. How can I get the browser to redisplay the file? It can refresh every N seconds, but I'd like it faster and more efficient (browsers flicker upon refresh). I'm doing this:
system("/usr/bin/osascript reload.scpt");
. . . where reload.scpt is a trivial Applescript:
tell application "Google Chrome"
reload active tab of window 1
end tell
But it annoys me to have to fork a new process each time. Is there a better way to do it? There used to be interfaces from perl directly to Applescript, but I can't get Mac::OSA::Simple to work these days. Can it be done in some non-applescript way? Or maybe the browser can watch for changes in the file, if I can put it where the browser can get at it?