diff --git a/scripts/run-ios.sh b/scripts/run-ios.sh new file mode 100755 index 0000000000..488cdbead3 --- /dev/null +++ b/scripts/run-ios.sh @@ -0,0 +1,80 @@ +#!/bin/sh + +[ `uname -s` != "Darwin" ] && return + +function tab () { + local cmd="" + local cdto="$PWD" + local args="$@" + + if [ -d "$1" ]; then + cdto=`cd "$1"; pwd` + args="${@:2}" + fi + + if [ -n "$args" ]; then + cmd="; $args" + fi + + iterm_exists=`osascript -e "id of application \"iterm2\""` + if [ ! -z iterm_exists ]; then + osascript &>/dev/null </dev/null <