I have an include object that I would like to generalize so that it can be used in any scripting tab of any executable object.
The JOBI is the one I made to
create a static VARA object if it does not already exist. As written, the JOBI is designed to run in the post-process tab of a job, and as such, uses the
:MODIFY_STATE
command to make the job end in error if an error is encountered. This scripting command cannot be used in the pre-process or process tab though; there, one muse use the
:STOP
command instead to stop the job during the activation phase.
I would like to make the JOBI context-aware, so that:
- It recognizes whether it is running in the pre-process/process tab or the post-process tab; and
- It uses the
:STOP
command in the first case, and the:MODIFY_STATE
command in the second.
Is there a way to do this?