Variable name doesn't contain anything, example added

#Learn.kmmacros (25.5 KB)

In that macro I hope that when I type #Learn it copies the text and the link to that into a new note in my programme. However the OriginLink variable never has the right data, it just spits back out OriginLink. I hoped in the early part of the script it would save system clipboard to a variable OriginLink but it doesn't seem to be recognising it correctly?

Your macro is pretty long, so I didn't look over the whole thing, but I can tell you that you have the first action set up backwards. Instead of setting the clipboard to OriginLink, like you have now:

image

you want to set OriginLink to the clipboard:

image