问题
I just need the command for opening a new terminal in a terminal and then being able to identify that terminal and then run some java code in that terminal.
回答1:
I think you need to type this into a Terminal window, or put it in a script:
osascript -e 'tell application "Terminal" to do script "/bin/date"'
Change /bin/date to your Java thing.
来源:https://stackoverflow.com/questions/27866749/opening-a-terminal-with-a-terminal-mac