Problem with script on iOS

Hello!I have a script and it doesn’t work on Unity (when I use for IOS)
I have this error:enabled is not a member of unityengine.component
How to fix it ???
My script code is:

var target : Transform;

function Update () {
var other = gameObject.GetComponent("GUI Style Script");
if ( Vector3.Distance(target.position, 
transform.position ) < 25) {
other.enabled = true;
}
if ( Vector3.Distance(target.position, transform.position ) > 25) {
other.enabled = false;
}
}

Don’t use quotes in GetComponent; that makes it return Component instead of the type.