You might try the task script. See the script itself for documentation.
J6: ~system/packages/misc/task.ijs'
,
J7: ~system/main/task.ijs
It contains utilities such as fork_jtask_
, spawn_jtask_
, shell_jtask_
You can load the script in both versions using: require 'task'