So you've downloaded (or created) a script in the form of a text file but you can't seem to run it. Here's a possible solution.
In the folder containing the script:
1. Edit - Preferences
2. Go to the tab Behaviour and check Run executable files when they are opened.
Now go back and try to run your script and it should work.