Replies: 2 comments 3 replies
-
Hey @qwekjh, this is a great question. According to the documentation, I unfortunately can not find an API function to get a
The above script should do what you wanted to do:
demoHope that helps. |
Beta Was this translation helpful? Give feedback.
-
I may want to achieve something else and the method suggested by @welpdx didn't quite work for me. The new file ended up just a simple copy of the template while the tp functions were not executed. I want to use a template to create a file in a specific folder. I was able to do it with the
|
Beta Was this translation helpful? Give feedback.
-
I tried to make my daily notes open a weekly note if one does not already exist. I wrote this in the daily note's template:
I did not use
open_new
increate_new
(so it defaults tofalse
).The problem is that every command after the
create_new
was appended to that new (weekly) file and not the previous (daily) file, what am I missing?tp.file
variable change to the new file created whencreate_new
is complete?create_new
?await
, the commands are appended correctly, but I suspect it is just a race conditionBeta Was this translation helpful? Give feedback.
All reactions