# Execute Script on Alarm isActive

**URL:** <https://forum.inductiveautomation.com/t/execute-script-on-alarm-isactive/108933>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [July 24, 2025, 8:38pm UTC](https://forum.inductiveautomation.com/t/execute-script-on-alarm-isactive/108933 "2025-07-24T20:38:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Project2501](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@Project2501](https://forum.inductiveautomation.com/u/Project2501)\
**Post date:** [July 24, 2025, 8:38pm UTC](https://forum.inductiveautomation.com/t/execute-script-on-alarm-isactive/108933/1 "2025-07-24T20:38:47Z")

</div>

I have an analog tag with 4 levels of alarming configured. My ideal end result would be at each level, I execute system.util.execute(['C:\path\LowLow.bat']).

if Tag.LowLowAlarm isActive, Do A, LowAlarm, isActive, Do B etc..

At the tag scripting level, how do I create unique actions for the invidual alarm.isactive and not the overall Alarm HasActive state?

(we are executing an external application, different actions for different alarm levels).

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 25, 2025, 5:17am UTC](https://forum.inductiveautomation.com/t/execute-script-on-alarm-isactive/108933/2 "2025-07-25T05:17:56Z")

</div>

The `Alarm Active` tag change event can do this:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1cb472e563dcda4e8a0101d84c62a05c96915450.png)

Check the `alarmName` variable within the event handler function for the alarm that changed
