在macOS 10.12.6上运行gitk时出现错误。

6

我按照这个SO帖子的指示安装了brew和gitk。我正在运行macOS 10.12.6。 git仍然正常工作,但是当我尝试从终端运行gitk时,出现以下错误:

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)

我尝试过重新启动终端会话并使用brew重新安装git。

我该如何解决这个问题?


同样的问题在我这里也出现了,运行的是Mac 10.13.4。 - Daniel
3个回答

2

1
  1. 打开终端
  2. su
  3. 更改目录并运行ls:

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

  4. 删除或移动目录: mv Adobe\ Unit\ Types.osax /tmp


0

似乎这个错误与位于/Library/ScriptingAdditions文件夹中的任何脚本都不兼容你当前的MacOS版本有关。

通常会报告这个脚本的名称,例如在我的情况下是WebexScriptAddition.osax,在Pawel的情况下是Adobe Unit Types.osax,在Daniel的情况下是QXPScriptingAdditions.osax

无论哪种情况解决方案都是相同的:删除脚本或将其移动到临时位置,测试系统,然后再删除之前保存脚本的临时位置。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接