Run a piece of JavaScript and wait till it finishes.Most Tasker actions are available via function calls.See the JavaScript section of the Userguide for more information.