# Automatic paste in note

**URL:** <https://forum.obsidian.md/t/automatic-paste-in-note/66852>\
**Category:** Help\
**Created:** [September 8, 2023, 5:48am UTC](https://forum.obsidian.md/t/automatic-paste-in-note/66852 "2023-09-08T05:48:38Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![gino\_m](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/3ec8ea/32.png) [@gino\_m](https://forum.obsidian.md/u/gino_m)\
**Post date:** [September 11, 2023, 7:15pm UTC](https://forum.obsidian.md/t/automatic-paste-in-note/66852/6 "2023-09-11T19:15:00Z")

</div>

I was searching for metadataCache and found this:

> [@QuickAdd Plugin](https://forum.obsidian.md/t/quickadd-plugin/20032/56):
>
> Something like this slight_smile const currentFile = app.workspace.getActiveFile(); if (!currentFile) return; const cfMeta = app.metadataCache.getFileCache(currentFile); const counter = parseInt(cfMeta.frontmatter.count); app.plugins.plugins["metaedit"].api.update("count", counter + 1, currentFile);

If you manage to cook something up, pass along a slice of the pizza, cheers 🙂

---

_[View the full topic](https://forum.obsidian.md/t/automatic-paste-in-note/66852)._
