How to disable script on trigger

In my game, I have it where there is a spinning saw and if you touch it you die. In order to get past it, you have to throw a cube at a stop button. When the cube hits the trigger on the button the saw stops spinning but, the death script is still enabled how would I disable it when the cube hits the button?

Tutorial on Enabling Components

SawGameObject.GetComponent<SawKillScript> ().enabled = false;