how do you use a script in blender?
In short:
From the Window Type selection menu (icon button on the far left in any window header bar) Choose “Scripts Window”.
In the header of that window click Scripts to see a selection of bundled scripts.
New scripts can be added to this menu or implemented in the Text editor.
There’s a lot of info available here and the official Blender sites.
2004 Blender Documentation on Python Scripting http://www.blender3d.org/documentation/htmlI/c11087.html
Also look in the Help menu in Blender.