how to disable a script component

wondering how to disable a script through another script.
by the way they can be on the same object.

This looks promising: Disable script from code - Unity Answers