I was thinking about not building the final .imp file if we need to edit anyway the sources, only build the final result after making all the changes. Also I think it's better to do all the necessary replacements using the AutoIt scripting flexibility (and not jscript)
So I made a little change in any2imp.js, used a function (after function ev_oBuilder_OnBuildStart) for detecting the OnSourceDone event for aborting the build like this:
Code:
function ev_oBuilder_OnSourceDone(file_name, file_index, tot_files){
WScript.StdOut.WriteLine("Abort Build");
oBuilder.AbortBuild();
}
What's your opinion?
By the way your modds for temporary file access are not better... but the best