if
(
name of operating system = "Mac OS X"
)
then "N/A" else
(
if
(
major version of operating system = 6
)
then
(
if
(
NOT exists file "hiberfil.sys" of root folder of drive of system folder
)
then "Disabled" else
(
if
(
exist key
(
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\" &
(
value "ActivePowerScheme" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes" of registry as string
)
& "\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\9d7815a6-7ee4-497e-8888-515a05f02364"
)
whose
(
value "ACSettingIndex" of it != ""
)
of registry
)
then
(
(
if
(
it as time interval = 0 * second
)
then "Never" else
(
preceding text of last ":" of it
)
)
of
(
(
(
value "ACSettingIndex" of key
(
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\" &
(
value "ActivePowerScheme" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes" of registry as string
)
& "\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\9d7815a6-7ee4-497e-8888-515a05f02364"
)
of registry as integer
)
* second
)
as string
)
)
else if
(
(
exists key
(
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\9d7815a6-7ee4-497e-8888-515a05f02364\DefaultPowerSchemeValues\" &
(
value "ActivePowerScheme" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes" of registry as string
)
)
whose
(
value "ACSettingIndex" of it != ""
)
of registry
)
)
then
(
(
if
(
it as time interval = 0 * second
)
then "Never" else
(
preceding text of last ":" of it
)
)
of
(
(
(
value "ACSettingIndex" of key
(
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\9d7815a6-7ee4-497e-8888-515a05f02364\DefaultPowerSchemeValues\" &
(
value "ActivePowerScheme" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes" of registry as string
)
)
of registry as integer
)
* second
)
as string
)
)
else "Disabled"
)
)
else
(
(
if
(
NOT exists file "hiberfil.sys" of root folder of drive of system folder OR item 5 of it = "00"
)
then "Disabled" else if
(
item 4 of it = "02"
)
then
(
(
if
(
item 0 of it = 0
)
then "Never" else preceding text of last ":" of
(
(
(
item 0 of it + item 1 of it
)
* second
)
as string
)
)
of
(
hexadecimal integer
(
item 2 of it & item 3 of it
)
,
(
hexadecimal integer
(
item 0 of it & item 1 of it
)
)
)
)
else if
(
item 4 of it = "03"
)
then
(
(
if it = 0 then "Never" else preceding text of last ":" of
(
(
it * second
)
as string
)
)
of
(
hexadecimal integer
(
item 0 of it & item 1 of it
)
)
)
else
(
"Never"
)
)
of
(
(
last 2 of first 124 of
(
value "AcPolicy" of it as string
)
)
,
(
last 2 of first 122 of
(
value "AcPolicy" of it as string
)
)
,
(
last 2 of first 180 of
(
value "AcPolicy" of it as string
)
)
,
(
last 2 of first 178 of
(
value "AcPolicy" of it as string
)
)
,
(
last 2 of first 98 of
(
value "AcPolicy" of it as string
)
)
,
(
if
(
exists value "Heuristics" of it
)
then
(
last 2 of first 14 of
(
value "Heuristics" of it as string
)
)
else
(
"00"
)
)
)
of
(
key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power" of registry
)
)
)
if (name of operating system = "Mac OS X") then "N/A" else ( if (major version of operating system = 6) then (if (NOT exists file "hiberfil.sys" of root folder of drive of system folder) then "Disabled" else (if (exist key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\" & (value "ActivePowerScheme" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes" of registry as string) & "\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\9d7815a6-7ee4-497e-8888-515a05f02364") whose (value "ACSettingIndex" of it != "") of registry) then ((if (it as time interval = 0 * second) then "Never" else (preceding text of last ":" of it)) of (((value "ACSettingIndex" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\" & (value "ActivePowerScheme" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes" of registry as string) & "\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\9d7815a6-7ee4-497e-8888-515a05f02364") of registry as integer) * second) as string)) else if ((exists key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\9d7815a6-7ee4-497e-8888-515a05f02364\DefaultPowerSchemeValues\" & (value "ActivePowerScheme" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes" of registry as string)) whose (value "ACSettingIndex" of it != "") of registry)) then ((if (it as time interval = 0 * second) then "Never" else (preceding text of last ":" of it)) of (((value "ACSettingIndex" of key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\9d7815a6-7ee4-497e-8888-515a05f02364\DefaultPowerSchemeValues\" & (value "ActivePowerScheme" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes" of registry as string)) of registry as integer) * second) as string)) else "Disabled")) else ((if (NOT exists file "hiberfil.sys" of root folder of drive of system folder OR item 5 of it = "00") then "Disabled" else if (item 4 of it = "02") then ((if (item 0 of it = 0) then "Never" else preceding text of last ":" of (((item 0 of it + item 1 of it) * second) as string)) of (hexadecimal integer (item 2 of it & item 3 of it) , (hexadecimal integer (item 0 of it & item 1 of it)))) else if (item 4 of it = "03") then ((if it = 0 then "Never" else preceding text of last ":" of ((it * second) as string)) of (hexadecimal integer (item 0 of it & item 1 of it))) else ("Never")) of ((last 2 of first 124 of (value "AcPolicy" of it as string)) , (last 2 of first 122 of (value "AcPolicy" of it as string)) , (last 2 of first 180 of (value "AcPolicy" of it as string)) , (last 2 of first 178 of (value "AcPolicy" of it as string)) , (last 2 of first 98 of (value "AcPolicy" of it as string)) , (if (exists value "Heuristics" of it) then (last 2 of first 14 of (value "Heuristics" of it as string)) else ("00"))) of (key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power" of registry)))