Start a bash file from GUI

Archives Forums/MacOS X Discussion/Start a bash file from GUI

degac(Posted 2008) [#1]
I'm asking your help: I'm trying to start a bash file directly from the desktop/gui, in the same way on Windows .bat files.

I've created a file called update.sh like the following one

#!/bin/bash
export PATH=/usr/local/bin:$PATH
svn update ~/blitzmax
svn update ~/blitzmax/bin


I've made it executable with chmode +x update.sh
The file is on the desktop, but when I double-click on it, the OS opens TextEdit...

I want to run it with the double click

Thanks in advance.


Brucey(Posted 2008) [#2]
How's about : http://www.macosxhints.com/article.php?story=20030728055235121


degac(Posted 2008) [#3]
Great.
Many thanks!