if
(
name of operating system as lowercase starts with "win"
)
then
(
if
(
exists service "BESRootServer" and exists regapp "BESClient.exe"
)
then
(
(
sum of sizes of files of folder
(
(
preceding text of first "BESClient.exe" of pathname of regapps "BESClient.exe"
)
& "__BESData\actionsite"
)
/ 1000
)
as string & " KB"
)
else "N/A"
)
else "N/A"
if (name of operating system as lowercase starts with "win") then (if (exists service "BESRootServer" and exists regapp "BESClient.exe") then ((sum of sizes of files of folder ((preceding text of first "BESClient.exe" of pathname of regapps "BESClient.exe") & "__BESData\actionsite") / 1000) as string & " KB") else "N/A") else "N/A"