applying toon shading to all 3d meshes at once

If I import a 3d object with a hundred or so meshes I have to drag toon shading on all the parts individually, is there some way to apply it to everything in the folder or prefab at once?

It should be relatively easy to write an editor script that does an AddComponent for every game object for a selected object by recursively iterating over its transforms. Doing a quick search led me to this forum post which should be a decent starting point. http://forum.unity3d.com/viewtopic.php?p=231868

If you write one that works, post it and let us see how it worked out.