Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error running gitk on macOS 10.12.6

I installed brew and gitk as indicated in this SO post. I'm running on macOS 10.12.6. git still works fine, but when I try to run gitk from the terminal, I get:

Error in startup script: osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
    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)

I did try restarting the terminal session and reinstalling git with brew.

How do I resolve this issue?

like image 533
Mike Avatar asked Oct 18 '22 03:10

Mike


2 Answers

Turns out this could be caused by an old Quark scripting addition?

https://github.com/svg/svgo-osx-folder-action/issues/5

Removing said folder works for me.

sudo rm -rf QXPScriptingAdditions.osax/ 
like image 95
Daniel Avatar answered Oct 21 '22 03:10

Daniel


  1. Go to terminal
  2. su
  3. Change directory and run ls:

    $ cd /Library/ScriptingAdditions $ ls Adobe Unit Types.osax

  4. Remove or move the directory: mv Adobe\ Unit\ Types.osax /tmp

like image 34
Pawel Skrzynski Avatar answered Oct 21 '22 05:10

Pawel Skrzynski