Add delay to macos script startup (#1462)

This commit is contained in:
cburlinchon 2017-09-11 15:23:03 +01:00 committed by GitHub
parent cd0d2f370e
commit 10c4d46b97

View File

@ -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