来自应用程序错误的 AppleScript:跳过脚本添加“/Library/ScriptingAdditions/Adobe Unit Types.osax"因为它不受 SIP 保护 [英] AppleScript from App Error: skipped scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" because it is not SIP-protected

查看:19
本文介绍了来自应用程序错误的 AppleScript:跳过脚本添加“/Library/ScriptingAdditions/Adobe Unit Types.osax"因为它不受 SIP 保护的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从我们的应用程序运行脚本并收到此错误消息,即使是简单的类似:

Trying to run a script from our app and get this error message, even with something simple like:

tell application "Finder"

    display dialog "Hello World"

end tell

已设置适当的权利,例如:com.apple.security.scripting-targets"和com.apple.security.temporary-exception.apple-events:before:10.8" App 与 Adob​​e 无关...

Have set the appropriate Entitlements like: "com.apple.security.scripting-targets" and "com.apple.security.temporary-exception.apple-events:before:10.8" App has nothing to do with Adobe...

推荐答案

跳过脚本添加..."错误只是警告,而不是致命错误.它通知您它试图加载一个特定的脚本添加 (osax),但拒绝它,因为它不符合系统完整性(安全)标准.系统将继续尝试在没有 osax 的情况下正常执行脚本,在这种情况下(和大多数情况下)应该可以工作.

The "skipped scripting addition..." error is merely a warning, not a fatal error. It is informing you that it tried to load a particular scripting addition (osax), but rejected it because it doesn't meet system integrity (security) standards. The system will go on to try and execute the script normally without that osax, which in this case (and most cases) should work.

Osaxen 存储在 '/Library/ScriptingAdditions''~/Library/ScriptingAdditions' 中.在这两个文件夹中查找有问题的 osax(在本例中显然是 Adobe Unit Types.osax),然后移动或丢弃它.警告将消失,您的脚本仍将正确运行.或者只是将它留在那里并忽略您可能有一天想要显式加载和使用 osax 的警告.

Osaxen are stored in '/Library/ScriptingAdditions' and '~/Library/ScriptingAdditions'. Look in those two folders for the offending osax — which in this case is obviously Adobe Unit Types.osax — and move or discard it. The warning will go away, and your scripts will still run correctly. Or just leave it there and ignore the warning on the off-chance that you might someday want to load and use the osax explicitly.

这篇关于来自应用程序错误的 AppleScript:跳过脚本添加“/Library/ScriptingAdditions/Adobe Unit Types.osax"因为它不受 SIP 保护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆