falsecz
8/27/2013 - 11:51 AM

mssh

#!/bin/bash

FIRST=0

echo "tell application \"System Events\" to keystroke \"t\" using command down" | osascript

for var in "$@"; do
	if [ "$FIRST" = 1 ]; then
		echo "tell application \"System Events\" to keystroke \"d\" using command down" | osascript
	fi
	FIRST=1
	echo "tell application \"System Events\" to keystroke \"ssh $var\n\"" | osascript
done;