applescript - 无法使用 applescript 从钥匙串中读取“帐户名称”
问题描述
我无法使用苹果脚本从钥匙串中读取“帐户名称”。
这不起作用:
tell app "Keychain Scripting" to get account of "app name"
我可以使用以下命令从钥匙串中读取密码:
local password
set password to do shell script ("security 2>&1 >/dev/null find-generic-password -gl " & quoted form of "app name" & " | cut -c 11-99 | sed 's/\"//g'")
是否有关于哪些命令用于钥匙串脚本的文档?
解决方案
推荐阅读
- css - 手风琴最大高度过渡不起作用
- c - 警告从没有强制转换的指针中生成整数
- javascript - 如何在本机反应中进行条件渲染
- react-native - 如何在本机反应中请求 iOS 存储权限?
- android - Android MP 图表在 x 轴上以 dd-MM-yyyy 格式设置日期
- mysql - 如何找到唯一索引的名称?MySQL
- python-2.7 - 运行多个函数
- android - 使用 Rect 将视图添加到特定位置的布局
- c# - ASP.Net - Mvc5:LINQ,保存重复记录问题
- jquery - 用 django HttpResponse 中的 ajax 替换正文内容的问题