How can I make a shell script open multiple new Terminal windows that executes each their shell script? Just like asked here, but in OS X.
I've got a for-each loop which runs trough all the given arguments and should execute a script in a new Terminal window for each given argument (and pass on the argument).
This is what I've tried:
#!/bin/bash
for arg in $@ do
open -a Terminal ./somescript.sh --args $arg
done