I’m trying to move a new file to a certain folder, then change it’s name from untitled to “Session (number) (date)” and then print that name on the body of my note
I mainly tried different iterations of a code that looks like this:
<%- await tp.file.move(“/folder/” + tp.file.title) %>
<%- tp.file.rename("Session " + tp.date.now()) %>
<% tp.file.title %>
Plus I haven’t been able to figure out how to keep track of the number of sessions using a variable.
I’m aware that it’s possible to create custom user functions but bear in mind that my knowledge of JS is very limited.