Converting a text file into a python file (.py)

Beorn Leonard, well known animator, sent the following .py file:
http://www.pasteall.org/41442

The idea is to use it to install an ADD-ON.
So he suggested copying and pasting it into a text file (.txt), then save it as a .py file.

It is then used to install an ADD-On via the User Preferences.

But how does one save or convert a text file as a python file?

I’d be most grateful to know the answer.

Python file is simple text file extension of which is changed to .py instead of .txt
Depends on what OS you’re using. If win then make sure you see file extensions in Explorer and rename “name.txt” file to “name.py”.
If you have notepad with file opened click Save As and make sure below on dropdown you have “All types”, then write name.py and save.

Use Copy to Clipboard button on pasteall page - that ensures you have correctly copied text from page. Select and copy introduces spaces in front of lines which cause python errors later.

Eppo, thank you so much.
You have answered my query with complete clarity.
I can now go ahead and set up the Add-On.

Thanks dude now this also useful for me! you posted this 10 years ago