Search System Objects in the Logics Folder and Print to Console Results
//Get all the Macros, Reaction and Scripts objects
var filter = new Filter();
filter.ObjectModel = ["GmsMacro", "GMS Script", "GmsReaction"];
var logicsObjects = searchSync(filter);
if (logicsObjects == null || logicsObjects.length == 0){
console("No Macro, Reaction or Script objects found");
terminate();
}
console("Logics objects count = {0}", logicsObjects.length);
//For each element returned by the Search (macro, reaction or script), read and print its Last Execution Status
for(var i = 0; i < logicsObjects.length; i++){
var logicsObj = logicsObjects[i];
var lastExecutionStatus = read(logicsObj, "LastExecutionStatus");
console("\t[{0}]: {1}. LastExecutionStatus = {2}", i, logicsObj, lastExecutionStatus);
}