Grabbing a script then enable/disable?

Hi there!

So, I was wondering how you would disable or enable a script?

I know it has something to do with GetCompenent<> but I get that far and get stuck. If you could help me that would be great!

Thanks

-Sir

GetComponent<scriptName>().enabled =false; does not work?