【问题标题】:Error running gitk on macOS 10.12.6在 macOS 10.12.6 上运行 gitk 时出错
【发布时间】:2017-10-25 14:59:11
【问题描述】:

我按照this SO post 中的说明安装了 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

标签: macos homebrew gitk


【解决方案1】:

原来这可能是由旧的 Quark 脚本添加引起的?

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

删除上述文件夹对我有用。

sudo rm -rf QXPScriptingAdditions.osax/ 

【讨论】:

    【解决方案2】:
    1. 转到终端
    2. 更改目录并运行 ls:

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

    3. 删除或移动目录: mv Adob​​e\ Unit\ Types.osax /tmp

    【讨论】:

      【解决方案3】:

      此错误似乎与 /Library/ScriptingAdditions 文件夹中与您当前的 MacOS 版本不兼容的任何脚本有关。

      错误通常会将此脚本命名为 WebexScriptAddition.osax 在我的情况下,Adobe Unit Types.osax 在 Pawel 的情况下,QXPScriptingAdditions.osax 在丹尼尔的情况下。

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

      【讨论】:

        猜你喜欢
        • 2019-11-11
        • 1970-01-01
        • 2022-08-16
        • 1970-01-01
        • 1970-01-01
        • 2022-12-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多