我无法将mac开发人员库提供的xml转换为权利中使用的普通plist表单 mac开发人员库提供的XML:
<key>com.apple.security.scripting-targets</key>
<dict>
<key>com.apple.mail</key>
<array>
<string>com.apple.mail.compose</string>
</array>
</dict>
我会发布我的plist的图像,但我没有足够的代表发布图片。
我的主要问题是我不知道在我的plist中创建键的类型/值以及dict和array的键列中的内容。
答案 0 :(得分:0)
Step 1 ) Add com.apple.security.scripting-targets and select type as dict
step 2 ) Inside above dictionary add com.apple.mail and select type as array
step 3) add com.apple.mail.compose inside the above array.
OR
you can simply open your plist as source code by right click the plist and select open as source code and just paste the The XML provided by mac developer inside it
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.scripting-targets</key>
<dict>
<key>com.apple.mail</key>
<array>
<string>com.apple.mail.compose</string>
</array>
</dict>
</dict>
</plist>