It´s not a script. It´s plugin. Copy plugin folder into installation directory (where is Cinema4D.exe) into "plugins" folder. If not exist, just create folder named "plugins". Then you´ll find plugin in main menu Extensions. Click on it and in Object Manager drag choosen object into object link field. Splines from edges will be created immediately.