Answer
Event scripts in an AI-Scripts bundle are activated and stored in a table in the eventd process. The eventd process monitors the log messages generated by all system processes. When eventd detects an event script event trigger, it executes the associated event script.