#!/bin/sh appdir=$1 function isTerminalRunning() { return=`osascript<