xcode - 如何在 Xcode 中使用 AppleScript 创建一个简单的 kext 安装程序?
问题描述
谁能告诉我如何在 Xcode 中使用 AppleScrit 创建一个简单的 Kexts 安装程序?我尝试了以下方法:
on installKext:sender
choose file
copy the result to thisFile
copy the (info for thisFile) to fileInfo
copy the name extension of the fileInfo to nameExtension
copy the file type of the fileInfo to filetype
tell application "Finder"
if the filetype is "Kext" or ¬
the nameExtension is "Kext" then
move thisFile to folder "Extensions" of folder "Library" of folder "System" of startup disk
end if
end tell
end installKext:
我有这个错误:
installKext:]: 未授权向 Finder 发送 Apple 事件。(错误-1743)
错误域=PlugInKit 代码=13 “查询已取消” UserInfo={NSLocalizedDescription=查询已取消}
解决方案
推荐阅读
- sql - 在 where 条件下使用之前如何删除 sql 中的前导零?
- python - Python间歇性OpenSSL错误:FileNotFoundError:[Errno 2]没有这样的文件或目录
- android - 更新到 Kotlin 1.4 后,Android Gradle 构建失败 dexBuilderDebug 任务
- php - 如何更新 json 的第三级
- html - 从网站下载时使用 VBA 复制下载按钮
- language-design - 有没有人发明了一种编程环境或进行过实验,其中函数的拼写等......可以是近似的吗?
- batch-file - cmd,批处理 cd 变量空间扩展
- javascript - 来自按钮的 Javascript API 调用未将值返回到隐藏字段
- javascript - 是否可以将 js 字符串转换为日期以将其上传到 SQL 数据库?
- swift - 如何按日期过滤核心数据项?