Osascript总是返回错误无法找到CFBundle 0x7fa3f42032e0的可执行文件

时间:2014-01-22 11:09:08

标签: macos terminal applescript osascript

终端中的Osascript始终为最简单的函数返回此错误 当我在ApplescriptEditor中运行脚本时它运行正常......

e.g:

$: osascript -e 'tell application "iTerm" to display dialog "Hello World"'

2014-01-22 11:59:19.822 osascript[665:707] Cannot find executable for CFBundle 0x7fa3f42032e0 </Library/ScriptingAdditions/AeroFSFinderExtension.osax> (not loaded)
osascript: OpenScripting.framework - scripting addition
"/Library/ScriptingAdditions/AeroFSFinderExtension.osax" declares no loadable handlers.
button returned:OK

我已经重新安装了XCode和CLL(使用Appcleaner)

有人知道如何修复此错误吗? (或者至少让它沉默......)

我在10.8.5

1 个答案:

答案 0 :(得分:5)

什么是/Library/ScriptingAdditions/AeroFSFinderExtension.osax

看起来这是一个破碎的脚本添加,如果它实际上并不需要,只需尝试删除该文件(您需要管理员权限),然后再次运行osascript