I'm trying to write a script that closes all files with the Edit* prefix that I'm using for junk and need to clear once and a while. I don't want to get save prompts when I run the script.
Any ideas?
Any ideas?
Code: Select all
// Close all new files without prompt.
var nFileIndex = UltraEdit.document.length;
while (nFileIndex--) {
if (UltraEdit.document[nFileIndex].isName("")) {
UltraEdit.closeFile(UltraEdit.document[nFileIndex].path,2);
}
}