I get the error:
Syntax Error
Expected end of line but found application constant or consideration.
Then, it highlights the word note after the word create.
I'm not experienced in applescript at all, so I am not sure what I'm missing. Am I supposed to just copy/paste your script there into automator or applescript and then hit run?