Replies: 1 comment 2 replies
-
The return value of an inline script will be inserted at the location of the script, e.g. in captures / templates. A macro can imitate this behavior by 1st running a script and then assigning the desired value to a variable, which can 2ndly be used in a capture. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm contemplating on using MACRO's to execute various scripts, possibly DataviewJS scripts, and I was wondering whether it's possible to get the macro to insert stuff into the active file, or possibly better into a dedicated log file?
Is this easily achievable somehow, and if so how? I thought I read somewhere that returning stuff would insert into the active file, but it doesn't seem to work like that. Tried with the following function, which does produce the output in the console, but nothing in the active file:
Beta Was this translation helpful? Give feedback.
All reactions