You also have to type
chmod u+x <scriptname>
to make the script an executable file. You can most probably do this in your file browser window (in Suse konquerer: right-click on file, Properties menu option, permissions tab, click the user exec tickbox to put an X in there).
For anything else to do with scripting, start by typing 'bash tutorial' into google.