Manual:Script Inspector File Menu

Save as
Save the text to a specified file.