modalDialogCustom.alert('Failed to create file '+newName)
}else{
appAPI.switchFile(newName)
varpath=appAPI.currentPath()
modalDialogCustom.prompt(null,'save ran transactions to file (e.g. `scenario.json`). The file is goiing to be saved under '+path,'scenario.json',input=>{