How can I set the static checkbox of a GameObject in an editor script?

I'm trying to write an editor script to get models into unity3d (iphone) which have a lot of their setup already dealt with.

I'd like to be able to specify that a transform, or gameobject is static as if i'd ticked the checkbox in the editor, but can't seem to see a way to do this.

Is it possible? What member controls this property?

Cheers

The GameObject class has a property called isStatic that you can use from editor scripts.