Disable a script from script!

This isnt working
otherObject.GetComponent().enabled = false;

What script are you trying to disable?

If what I think you are doing then;

otherObject.GetComponent<ScriptName>().enabled = false;