Starting gitk on macOS gives an error application is not running

Viewed 1962

When I'm loading gitk I get an error ->

Error in startup script: 58:102: execution error: System Events got an error: Application isn’t running. (-600)
    while executing
"exec osascript -e [format {
        tell application "System Events"
            set frontmost of processes whose unix id is %d to true
        end te..."
    invoked from within
"if {[tk windowingsystem] eq "aqua"} {
    exec osascript -e [format {
        tell application "System Events"
            set frontmost of processes ..."
    (file "/usr/local/bin/gitk" line 12212)

My git version is 2.17.1 and my mac os version is 10.13.6. Any ideas on how to fix this?

1 Answers
Related