There are at least two options, and that is to trigger the meta-edit plugin and do the update that way, or to use the obsidian API and trigger the process frontmatter function and update out that way.
Both do require a little coding, but examples can be found within the field.
Here is one of my posts where I’ve used app.FileManager.processfrontmatter() could possibly help you a little bit of the way. Do recognisethat when changing the current file you might need to use setTimeout() with a proper delay to counter some ravd conditions.
You’ve been given a link to a setup which do just what you ask about. Still you keep bumping this thread, which by the way is against the community guidelines of I’m not mistaken, not providing any new information as to why the proposed solution doesn’t work for you, nor anything about wussy you’ve actually tried (working or not).
Due to this I’m tapping out, but I do wish you the best of luck trying to figure this out.
I did not realize the code.
How would I fix that? I imagine p.fontmatter.faction.value??? but that isn’t the solution
The pages I want to check are indeed in the Roster folder. the number of pages is correct as there are 12 notes in the roster folder.
The result is correct as seen in the VM420:17 Proxy(DataArrayImpl) {values: Array(12), settings: {…}, length: 12, defaultComparator: ƒ}