#!/bin/bash RUNDIR=$(dirname "$0") pushd "$RUNDIR" >/dev/null RUNDIR=$(pwd) popd >/dev/null function msg() { if [ "$2" != "" ]; then icon="with icon $2" fi osascript <