how to pass command-line arguments to a program run with the open command?
Probably the easiest way is to create a temporary shell script, e.g. $ echo “~/my_executable arg1 arg2” > /tmp/tmp.sh ; chmod +x /tmp/tmp.sh ; open -a Terminal /tmp/tmp.sh ; rm /tmp/tmp.sh