I see script.turn_off as an option on the automation screen:

But I don’t see script.turn_off listed in the script documentation:
If you wish to stop a longer-running script while it is still running, is script.turn_off the best way to do it?
I see script.turn_off as an option on the automation screen:

But I don’t see script.turn_off listed in the script documentation:
If you wish to stop a longer-running script while it is still running, is script.turn_off the best way to do it?
It’s the only way. And it will only work with scripts that contain a wait or delay action.
Thank you, @tom_l! I wonder why it is not documented…