save script to a folder