I am working on a macro that should allow me to quickly create textfiles that all have some predefined content. I can figure out almost everything, but what I’m struggling with is how to use a variable I created, which holds the next number the textfile should get and use it in the file creation.
I have files that look like this:
zettel-1
zettel-2
…
zettel-11
zettel-12
…
zettel-101
zettel-102
…and so on
So basically I’m just counting upwards. The naming pattern for these files is clear: zettel-$nextnumber. But how do I get KM to create a file in the first place (it seems I could duplicate one) and how do I use variables while naming files? Is it necessary to use a script for that (I guess something like touch zettel-$nextnumberwould work)?
@ccstone (Chris), I moved your macro post to a new topic in the "macro" category so that it will be easier for all to find. It is a great example of sequential file numbering.