Skip to content

Commit

Permalink
Add delay to macos script startup (corda#1462)
Browse files Browse the repository at this point in the history
  • Loading branch information
cburlinchon authored Sep 11, 2017
1 parent cd0d2f3 commit 10c4d46
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ private class TerminalWindowJavaCommand(jarName: String, dir: File, debugPort: I
OS.MACOS -> {
listOf("osascript", "-e", """tell app "Terminal"
activate
delay 0.5
tell app "System Events" to tell process "Terminal" to keystroke "t" using command down
delay 0.5
do script "bash -c 'cd $dir; ${command.joinToString(" ")} && exit'" in selected tab of the front window
Expand Down

0 comments on commit 10c4d46

Please sign in to comment.