Somewhat copied from: Executing Shell Scripts from the OS X Dock
The following creates a running application that doesn't need to spawn the terminal to work. Do something like the following from the command line:
mkdir -p "$name.app/Contents/MacOS"
cat > "$name.app/Contents/MacOS/$name" <<EOF
chmod +x "$name.app/Contents/MacOS/$name"
Notice that the
JMeter Launcher name must match the .app top directory name and the script name down in
MacOS directory precisely which is why this script stores it in a variable.
Also, if you want to change the icon, you can select the application in the Finder, get info about it, select the default icon at the top of the info window, and paste a 512×512 PNG image over it.