// created by momotaro
// 現在アクティブなドキュメント以外のドキュメントをすべてクローズします。
// ※注意:修正中のドキュメントがあっても問答無用で閉じてしまいます。
var docList = getOpenDocPath();
var nowFile = thisDocument.getPathName();
for (var i = 0; i < docList.getCount(); i++) {
if (docList[i] != nowFile) {
openDocument(docList[i]).close();
}
}