In Layout Mode, in the Layouts menu, Layout Setup, Script triggers tab.
yes, i know this. i know how to set the script trigger manually, i.e., under the layout setup.
i am asking, how do i programatically set/reset it under a script?
Well you can not detach or attach a script trigger via script.
However, you COULD set a global variable to allow the steps that you want to run on or off.
If [ $$triggerOn ]
Set Field [ FieldA; "Hey its on" ]
Now to toggle it on or off, you can flag it on or off with a boolen value.
Set Variable [ $$triggerOn; not $$triggerOn ]