Disable/enable script (494539)

how can i disable and enable scripts.

i know how to add a game object as a variable but how do i add a script?

the code for enabling or disbling is

variablename.enabled=true
variablename.enabled=false

will this line work with enbling disabling script

yes scripts are also commponents…