View Single Post
Old 04-28-2009, 07:02 AM   #34
ancalex
Member
ancalex has a complete set of Star Wars action figures.ancalex has a complete set of Star Wars action figures.ancalex has a complete set of Star Wars action figures.
 
ancalex's Avatar
 
Posts: 21
Karma: 272
Join Date: Dec 2007
Location: Romania
Device: ebookwise 1150
Better access to temporary files... continued

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
ancalex is offline   Reply With Quote