Hi Mofi. Thanks for the suggestion, looks promising, I'll think it through and see how far I get. I can control in the compiler exactly when the file is created and therefore made available to another application that's why I thought this would be a good way to go.
The product is Alpha Five and as far as I am aware no one has previously successfully interfaced an external editor with it. It comes with it's own editor and this is built into the product itself. Interfacing an external editor with this product presents some challenges. It currently provides no such interface so I have had to develop one myself - the PreCompiler. It works really well and now I want a closer level of integration by adding a few embellishments, like being able to direct the compiler output to the UltraEdit output window. A5 has no ability to output to STDOUT or STDERR (at least not a documented one). So this is why I am exploring an effective and workable alternative. So I am still pondering the best way to do it. My precompiler must also handle situations where A5 is already running, so I don't think I will have the option to start the precompiler and then start A5.