For future reference for those that may come across this post, I did not select a solution for this problem, because the problem (getting a syntax error when when running the Templater command “Templater: Create new note with template” was that I had successfully created a new note the first time but then forgot to delete it, made some changes, tested and got an error because I already had a file with the same name. I didn’t know how to access the developer console which was prompted by @stef.rausch in this thread and clarified for Mac by @JonathanBuchh in this thread.
In a side win, @AlanG helped me fix up template to do what I wanted it to from the start!
So the template now looks like this:
## Program Log
<%* setTimeout(() => { tp.file.move("04 AREAS/FAIM/Program Logs/" + tp.file.creation_date("MM-DD-YYYY, dddd") + " (FAIM)") }, 2000) %>
**Client:** <% tp.file.cursor() %>
**Activities:** <% tp.date.now("MM-DD-YYYY, dddd") %>: - Lawrence C
Once run with Templater: Create new note from template my new note is moved to the folder I’ve specified and it’s ready for the day looking like this:
08-09-2023, Wednesday (FAIM)
Program Log
Client:
Activities: 08-09-2023, Wednesday: - Lawrence C
It works every time with no problems! Well… as long as I don’t have a file with the same in the destination folder anyway…
Thanks everyone for helping me get this sorted out! I appreciate it!
Lawrence