Nearly everything is scriptable, so the answer to
would be “most probably”.
Well, if you create a “text file or markdown”, exporting that as “JSON” seems to be a bit weird. But it’s possible. Only: What is it that you want to do with it later? Why build a text or MD file first instead of doing JSON right away?
What bugs me is this:
- what exactly do you have? It seems to be a group containing indexed files. So, it’s perhaps an indexed folder? Or is it just a collection of indexed files? Or is it a group containing records and other groups, all of them indexed? Then you want to “create the content” of this group – what is this “content”? The content of all the records? Perhaps not, but somehow “the metadata overview” (which metadata, exactly?), and “index functions” – which index functions?
- The outcome of this operation is to be a text or MD file which seems not to be used later on.
It seems to me that you want to move a “group” of indexed objects into their own database, archive this database, and then delete the original. I do not really get the point of having a ZIPped database somewhere which you do not use. If you need a database, why delete it? If you do not need the database (since you deleted it), why build it in the first place instead of simply ZIPping the content of the group and saving that somewhere? If you need a database from that content later on, build it then.
Maybe an image or something of this ominous text/MD file you want to create in the first step would clarify things.