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?

bfontaine
  • 18,169
  • 13
  • 73
  • 107
Mike
  • 3,084
  • 1
  • 25
  • 44

3 Answers3

2

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/ 
Daniel
  • 505
  • 6
  • 8
1
  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

0

It seems this error is related to any scripts within the /Library/ScriptingAdditions folder that are incompatible with your current MacOS version.

The error will generally name this script, WebexScriptAddition.osax in my case, Adobe Unit Types.osax in Pawel's case, and QXPScriptingAdditions.osax in Daniel's case.

The solution is the same in every case as both have outlined: either delete the script or move it to a temp location, test your system, then delete the temp location where you saved the script earlier.

WinkyCharlie
  • 146
  • 2
  • 3
  • 13