How to close a project silently?

ingvarai wrote on 4/5/2010, 1:59 PM
In my script, I save the current project, then create a new, temporary project.
I run a for loop, and inside this loop I use an UndoBlock and always set cancel = true at the end.

When the loop is done, I want to close the temporary project, and open the main project again. But I get this "Do you want to save changes" message box. How do I silently close down the current project open, with no message box? Is there a way to force this done, silently?
Ingvar