pub fn open_new_anonymous(ty: &ScriptType) -> Result<(ScriptName, PathBuf)>