TaskerJavaScriptHelpers icon indicating copy to clipboard operation
TaskerJavaScriptHelpers copied to clipboard

Add option to save exported variable list to variable

Open StephenGregory opened this issue 5 years ago • 0 comments

Sometimes I forget what variables I set in a task and have to refer back to the JavaScript to see what I named them. It'd be convenient if a variable was exporting containing that information.

For example, for a helper that does this:

Tasker.setLocalVariable('foo', [1,2,3]);
Tasker.setLocalVariable('bar', "this is wonderful");

Have it internally set jsdebug to:

JS set the following local variables:
Arrays: foo
Strings: bar

So in the Tasker task:

  • JavaScript action
    • calls above helper
  • Flash action
    • flashes %jsdebug

StephenGregory avatar Oct 21 '20 13:10 StephenGregory