I use the (excellent) Alfons Schmid Notebooks app and there are a couple of actions to post to it — one just called ‘Notebooks’
It returns an option to post to one of two folders (with buttons for DRAFTS | PERSONAL | SLIPS and I have those exact (u.c.) folders, among others.
The action give an error message that it has generated an invalid URL.
Here’s the script, how should I attempt to improve it?