Copying the note header to the body of the text

If you can do it manually, you can do it with KM.

Many thanks for the KM script. Yes, this works more or less exactly what I want. Just the following issues

  1. I have to run it separately for each item. So, if I select 100, it still runs for the first item and stops.
  2. The Note header when it is copied into the note is marked as 1. (header) and then the rest of the items are serially named as 2, 3 etc.

Actually, even if there is some manner in which I can
do the conversion for all my notes that should suffice. I have 1780 notes, running the script 1780 times is a bit of a stretch. And in the video you’ve shown above, it seems to run ok.

I have my diary entries serially numbered as 1. 2. etc. Is that causing the problem?

And lastly, do I have to move the whole set of notes to the ‘Research’ folder? Is that causing the problem, because I tried moving all my notes from the Drafts folder to the Research Folder, no luck with that? It seems to work perfectly in your example video, hence it is exactly what I want.

I’m glad the macro was useful. I am an intermediate KM user, so the macro is not as sophisiticated as it could be. The macro works like this:

  • Select the first item in the Binder you want to convert;
  • trigger the macro;
  • the macro will ask you how many items you want to convert – enter a number and press RETURN;

2022-01-15_12-31-53.411

  • the macro will convert the first item, then move to the second and continue iterating until it has completed the number of iterations you sepcified in the dialogue box.

If I were a more advanced KM user, I would have had the user select a number of binder items, and then I would have had KM count those items and set the number of iterations variable using that count. I think the way to do it (but this is above my pay grade) would be to copy the selected binder items into a clipboard, and then count the records in the clipboard.

if you’re interested in adding that feature to the macro, I recommend visiting the KM Forum, and posting the macro along with your request. The KM forum is quite possibly the most helpful forum on the whole internet, and there are a number of KM ninjas who will help you solve the issue.

I hope that helps.

1 Like

Yes, it does. Many thanks.

I have posted to the KM forum and also given your user name. You can see that here: