activeand deactive script

my problem is simply:
how to active and deactive script from script?

i’ve try but not have found solution.

an example:

var myScript = GameObject.GetComponent(ScriptName);

function Start () { 
myScript.enabled =false;
} 

//rest of script.

but this launch my an error: The name ‘ScriptName’ does not denote a valid type.

i don’t understand what is my error.

The error is that you’re using ‘ScriptName’ rather than the actual name of your script.

–Eric

yes,but it launch same error.

i’ve a script called “motor” and i’ve this:

var myScript = GameObject.GetComponent(motor); 

function Start () { 
myScript.enabled =false; 
} 

//rest of script.

error: The name ‘motor’ does not denote a valid type.

i call this from other script.all 2 script are in same object.

the script i call is in C.

Read this:

–Eric