if
(
not exists folder "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" OR not exists folder "/Library/PreferencePanes/JavaControlPanel.prefPane"
)
then ERROR "Not Installed" else if
(
bundle version of folder "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" as version
)
<
(
string "MinimumPlugInBundleVersion" of dictionary "com.oracle.java.JavaAppletPlugin" of dictionary "10" of dictionary "PlugInBlacklist" of dictionary of file "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist" as version
)
then True else False
if (not exists folder "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" OR not exists folder "/Library/PreferencePanes/JavaControlPanel.prefPane") then ERROR "Not Installed" else if (bundle version of folder "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" as version) < (string "MinimumPlugInBundleVersion" of dictionary "com.oracle.java.JavaAppletPlugin" of dictionary "10" of dictionary "PlugInBlacklist" of dictionary of file "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist" as version) then True else False