#! /bin/sh platypus_par_dir=`dirname ${0}` res_dir=`dirname ${platypus_par_dir}` contents_dir=`dirname ${res_dir}` dot_app_bundle=`dirname ${contents_dir}` export CIPRES_ROOT="${dot_app_bundle}/CIPRES-Root" if ! test -d "${CIPRES_ROOT}" then echo "${CIPRES_ROOT} does not exist." echo "a CIPRES-Root directory must be next to ${dot_app_bundle}" exit 1 fi source "${CIPRES_ROOT}/share/cipres/cipres.bashrc" if test -d "/Applications/Firefox.app" then /usr/bin/perl ${CIPRES_ROOT}/lib/perl/bin/regsrv & pid="$!" sleep 3 #trap "kill $pid" 0 1 3 9 15 24 open -a /Applications/Firefox.app "http://localhost:8077/start.xul?Regman" & else echo "You don't have firefox" exit 1 fi