I've written a FMP ADV 8.5 application that dynamically pulls together a block of HTML and writes out this block of HTML to a file on a web server. I'm using AppleScript to do the write of the test in a field to the file. I then want to access the just generated HTML using the FMP WebViewer. My challenge is figuring out when the file with the HTML has been written.

Does anyone have a technique for determining when a file write has completed so you know it is OK to go and execute the WebViewer load?

The file is always written to the same place and has the same name on the webserver.