syntaur 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/launch/index.js +16 -0
- package/dist/launch/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/install-macos-url-handler.mjs +14 -1
package/dist/index.js
CHANGED
|
@@ -8673,9 +8673,17 @@ function buildTerminalDispatch(installedTerminals) {
|
|
|
8673
8673
|
branches.push({
|
|
8674
8674
|
id: "terminal-app",
|
|
8675
8675
|
block: [
|
|
8676
|
+
' set wasRunning to application "Terminal" is running',
|
|
8676
8677
|
' tell application "Terminal"',
|
|
8677
8678
|
" activate",
|
|
8678
|
-
"
|
|
8679
|
+
" if wasRunning then",
|
|
8680
|
+
" do script shellCmd",
|
|
8681
|
+
" else",
|
|
8682
|
+
" repeat until (count of windows) > 0",
|
|
8683
|
+
" delay 0.1",
|
|
8684
|
+
" end repeat",
|
|
8685
|
+
" do script shellCmd in window 1",
|
|
8686
|
+
" end if",
|
|
8679
8687
|
" end tell"
|
|
8680
8688
|
]
|
|
8681
8689
|
});
|
|
@@ -21089,13 +21097,29 @@ function buildTerminalInvocation(plan) {
|
|
|
21089
21097
|
return {
|
|
21090
21098
|
command: "osascript",
|
|
21091
21099
|
args: [
|
|
21100
|
+
"-e",
|
|
21101
|
+
'set wasRunning to application "Terminal" is running',
|
|
21092
21102
|
"-e",
|
|
21093
21103
|
'tell application "Terminal"',
|
|
21094
21104
|
"-e",
|
|
21095
21105
|
"activate",
|
|
21096
21106
|
"-e",
|
|
21107
|
+
"if wasRunning then",
|
|
21108
|
+
"-e",
|
|
21097
21109
|
`do script ${appleScriptString(cdAndRun)}`,
|
|
21098
21110
|
"-e",
|
|
21111
|
+
"else",
|
|
21112
|
+
"-e",
|
|
21113
|
+
"repeat until (count of windows) > 0",
|
|
21114
|
+
"-e",
|
|
21115
|
+
"delay 0.1",
|
|
21116
|
+
"-e",
|
|
21117
|
+
"end repeat",
|
|
21118
|
+
"-e",
|
|
21119
|
+
`do script ${appleScriptString(cdAndRun)} in window 1`,
|
|
21120
|
+
"-e",
|
|
21121
|
+
"end if",
|
|
21122
|
+
"-e",
|
|
21099
21123
|
"end tell"
|
|
21100
21124
|
]
|
|
21101
21125
|
};
|