How to use Name Expr of functions inside dt << New Script
I have a JSL script that has the following:
There is a function stored in a variable toJournal:
toJournal = Function({},
//some commands
);
I want to call this function inside a New Script message:
dt << New Script("save presentation",
toJournal();
journal << save presentation();
);
however due to name scope where I use names default to here(1) in my main script, the function toJournal isn't know...