# Apply Gateway Event Scripts to all new and existing projects

**URL:** <https://forum.inductiveautomation.com/t/apply-gateway-event-scripts-to-all-new-and-existing-projects/66012>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [November 2, 2022, 5:41pm UTC](https://forum.inductiveautomation.com/t/apply-gateway-event-scripts-to-all-new-and-existing-projects/66012 "2022-11-02T17:41:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan.perretta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.perretta/32/75110_2.png) [@ryan.perretta](https://forum.inductiveautomation.com/u/ryan.perretta)\
**Post date:** [November 2, 2022, 5:41pm UTC](https://forum.inductiveautomation.com/t/apply-gateway-event-scripts-to-all-new-and-existing-projects/66012/1 "2022-11-02T17:41:41Z")

</div>

Hi,

Just finished setting up version control for projects on my Gateway, which is automated with a Gateway Event Script running on Update events. What I would like to do now is apply this Event Script to all existing projects and hopefully to new projects as they are created as well (without having to manually copy/paste the python code each time). I was wondering if anyone has done anything like this before. The problem I run into is the fact that the Gateway Event Scripts seem to be stored as .bin files that I can't decode properly to interact with. If anyone has input on this I would greatly appreciate the help.

Thank you!

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 2, 2022, 9:11pm UTC](https://forum.inductiveautomation.com/t/apply-gateway-event-scripts-to-all-new-and-existing-projects/66012/2 "2022-11-02T21:11:41Z")

</div>

There's no way to specifically apply just one particular type of event script to a bunch of projects, unfortunately. It's all an opaque, Java-serialized blob of data. In a future version, we're planning to update the serialization so that resources are saved in a human readable format, but until that happens, the only thing you can do here is _completely_ replace the resource with another.
