This script creates a new entry in the current draft, right after the entry where the cursor is. The separator between entries is set in the ‘Init’ function.
This is a companion discussion topic for the original entry at https://actions.getdrafts.com/a/1U5