Have you looked at using the script function system.alarm.queryStatus()? You should be able to set your path to the tag folder with a wildcard at the end to look at everything in the folder.
Have you looked at using the script function system.alarm.queryStatus()? You should be able to set your path to the tag folder with a wildcard at the end to look at everything in the folder.