0
我想改变一些Safari设置,并试图使用com.apple.Safari.plist。
这些都是我需要改变我如何设置plist值
com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptEnabled
WebKitJavaScriptEnabled
com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptCanOpenWindowsAutomatically
WebKitJavaScriptCanOpenWindowsAutomatically
com.apple.Safari.ContentPageGroupIdentifier.WebKit2PluginsEnabled
WebKitPluginsEnabled
WebKitJavaEnabled
我试图改变使用
defaults write com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptEnabled -bool true
它并没有改变值的第一个下面的键值。我需要一些帮助来理解为什么以及如何纠正这种情况。
而且我也想就如何访问该值来改变字符串值
<key>ManagedPlugInPolicies</key>
<dict>
<key>PlugInName</key>
<dict>
<key>PlugInDisallowPromptBeforeUseDialog</key>
<true/>
<key>PlugInFirstVisitPolicy</key>
<string>PlugInPolicyAllowNoSecurityRestrictions</string>
</dict>
</dict>
一些帮助如何更改PlugInFirstVisitPolicy的价值?我想把字符串改成别的东西。
是否有另一种方式比默认写入。我已阅读plistbuddy,但不知道如何使用它。任何帮助,高度赞赏。谢谢。
注:我已经拿到了第一部分
我用PlistBuddy设置这些值,我怎么想他们
/usr/libexec/PlistBuddy -c "Set com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptEnabled true" ~/Library/Preferences/com.apple.Safari.plist
等了其他值。 但我仍然不知道如何访问容器中的问题的第二部分。请帮忙。