Script all defintions to files