# Tag change script runs when saving

**URL:** <https://forum.inductiveautomation.com/t/tag-change-script-runs-when-saving/7002>\
**Category:** Ignition\
**Created:** [August 8, 2013, 2:54am UTC](https://forum.inductiveautomation.com/t/tag-change-script-runs-when-saving/7002 "2013-08-08T02:54:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cja7928](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@cja7928](https://forum.inductiveautomation.com/u/cja7928)\
**Post date:** [August 8, 2013, 2:54am UTC](https://forum.inductiveautomation.com/t/tag-change-script-runs-when-saving/7002/1 "2013-08-08T02:54:47Z")

</div>

I have a tag change script that sends out an email. Every time I save and publish a change everyone on the list recieves an erroneous email. the script runs even though the tags value hasn’t changed. Is there a way to prevent tag change scripts from running when saving the project?  
Thank you

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [August 8, 2013, 12:40pm UTC](https://forum.inductiveautomation.com/t/tag-change-script-runs-when-saving/7002/2 "2013-08-08T12:40:34Z")

</div>

may want to take a look at this and see if the initialChange is being flagged when you publish.

[inductiveautomation.com/supp … cripts.htm](http://www.inductiveautomation.com/support/usermanuals/ignition/index.html?tag_change_scripts.htm)

---

<div class="post-metadata">

**Author:** ![cja7928](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@cja7928](https://forum.inductiveautomation.com/u/cja7928)\
**Post date:** [August 8, 2013, 7:16pm UTC](https://forum.inductiveautomation.com/t/tag-change-script-runs-when-saving/7002/3 "2013-08-08T19:16:07Z")

</div>

I see that the initialchange is a flag to indicate if it was triggered by initially subscribing. Is there a way to prevent the initial execution when publishing or saving?

thank you.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 8, 2013, 8:32pm UTC](https://forum.inductiveautomation.com/t/tag-change-script-runs-when-saving/7002/4 "2013-08-08T20:32:30Z")

</div>

The initialChange variable should apply to saves as well.
