Artist Resources

Add the jsx file into your Illustrator folder —> Scripting —> Sample Scripts —> JavaScript

Quit the Illustrator application and open it again to run the script.