This script was written in able to help guys in outdoor advertising to do margin boxes quickly
To run this script save the file in a folder of your choice, then start Illustrator. In Illustrator, choose File > Scripts > Other Scripts, and navigate to and run your script file.