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

查看:72
本文介绍了应用程序错误导致AppleScript:跳过脚本添加"/Library/ScriptingAdditions/Adob​​e 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".该应用与Adobe无关.

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,在这种情况下(大多数情况下),该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(在本例中显然为 Adob​​e 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/Adob​​e Unit Types.osax";因为它不受SIP保护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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