This question already has an answer here:
Facing this issue after upgrading to Raring Ringtail. Before I could run .sh files by directly double clicking the file. But now it goes directly for editing instead of opening up a pop window which will allow me either to Run in Terminal or Edit. How to solve this?