Get TFile or full path from note name const name = 'Some note name' const file = app.metadataCache.getFirstLinkpathDest(name, '') console.log(file.path)