Start shell command by Applescript

To avoid opening a Terminal window when clicking on a shell command to run e.g. a macports application, create a simple Applescript with Apples “Applescript Editor” and save it “as Application”.

The code is as easy as this:

do shell script "/opt/local/bin/mycommand &> /dev/null &"

OSX shell