我按照 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)
我确实尝试重新启动终端 session 并使用 brew 重新安装 git。
我该如何解决这个问题?
最佳答案
原来这可能是由旧的 Quark 脚本添加引起的?
https://github.com/svg/svgo-osx-folder-action/issues/5
删除上述文件夹对我有用。
sudo rm -rf QXPScriptingAdditions.osax/
关于macos - 在 macOS 10.12.6 上运行 gitk 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46935771/