This tutorial explains the concepts of the script below. Create a tool to align 1 object to another while also linking to that object. Another basic intro to maxscript using a practical example.
Download final maxscript HERE: joegunn3d.com/EFX/training-individual-tutorials/