What I’m trying to do
I want the following:
- Create Note with Template
- Get Asked for Meeting Participants
- Write current date + Meeting Participants in FileName
- Write Current Week as property
- Position Cursor in the ##Notes Section
Things I have tried
This is my template:
<%*
const today = tp.date.now(“DD.MM.”);
const kw = tp.date.now(“W”);
const title = await tp.system.prompt(“Teilnehmer?”);
await tp.file.rename(
${today} – ${title});
tR += `—KW: ${kw}
Notes:
`;
%>
<%tp.file.cursor()%>
<%*
tR += `To-Dos:
- …
`;
%>
I have tried thousands of options. It seems that the string “<%tp.file.cursor()%>” is incompatible with the tR variable code block. So I tried do split the tR into two parts. How can my code block be executed and afterwards the cursor be set?
THANKS <3