const currentFile = app.workspace.getActiveFile() if (!currentFile) { return new Notice("No active file"); } await app.plugins.plugins.metaedit.api.update("Read", "Yes", currentFile)