Skip to content

Commit 0ca6948

Browse files
authored
Use open to open Julia REPL in macOS default terminal (#43111)
Most macOS developers use third-party terminal apps (e.g. iTerm2) to replace macOS's default terminal. Current implementation will always open built-in terminal to execute Julia REPL, which is not good enough.
1 parent b994e0b commit 0ca6948

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
set RootPath to POSIX path of (path to me)
2-
tell application id "com.apple.terminal"
3-
do script ("exec '" & RootPath & "Contents/Resources/julia/bin/julia'")
4-
activate
5-
end tell
1+
set RootPath to (path to me)
2+
set JuliaPath to POSIX path of ((RootPath as text) & "Contents:Resources:julia:bin:julia")
3+
set JuliaFile to POSIX file JuliaPath
4+
tell application id "com.apple.finder" to open JuliaFile

0 commit comments

Comments
 (0)