What command to abutt objects together on X axis to remove gaps between them?

Hi,
V5
If I follow this post of yours,

and make a button, I can then use that.
Not sure how I make a command I could type.
AbuttObjects which would run that.

I have created a new button, I have the .py file sitting in afolder on my D drive, just what do I do next, googled this cant fathom it out at all. They dont say if one drag drops it into rhino, or if one selects it in the windoes folder and hit ok, and what one then gets hold of to paste into the bit in the tut that says paste script here.
Completely baffled.

Steve