Skip to content

Commit

Permalink
Use open to open Julia REPL in macOS default terminal (JuliaLang#43111
Browse files Browse the repository at this point in the history
)

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.
  • Loading branch information
Evian-Zhang authored Nov 18, 2021
1 parent b994e0b commit 0ca6948
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions contrib/mac/app/startup.applescript
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
set RootPath to POSIX path of (path to me)
tell application id "com.apple.terminal"
do script ("exec '" & RootPath & "Contents/Resources/julia/bin/julia'")
activate
end tell
set RootPath to (path to me)
set JuliaPath to POSIX path of ((RootPath as text) & "Contents:Resources:julia:bin:julia")
set JuliaFile to POSIX file JuliaPath
tell application id "com.apple.finder" to open JuliaFile

0 comments on commit 0ca6948

Please sign in to comment.