# Running a project script from client event or expression tag

**URL:** <https://forum.inductiveautomation.com/t/running-a-project-script-from-client-event-or-expression-tag/9615>\
**Category:** Ignition\
**Created:** [January 28, 2015, 8:47pm UTC](https://forum.inductiveautomation.com/t/running-a-project-script-from-client-event-or-expression-tag/9615 "2015-01-28T20:47:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Cardona](https://avatars.discourse-cdn.com/v4/letter/l/7cd45c/32.png) [@Luis\_Cardona](https://forum.inductiveautomation.com/u/Luis_Cardona)\
**Post date:** [January 28, 2015, 8:47pm UTC](https://forum.inductiveautomation.com/t/running-a-project-script-from-client-event-or-expression-tag/9615/1 "2015-01-28T20:47:57Z")

</div>

I have a script project that I’m running from a simple button by using the following line  
project.EmailReport\_Generator.machine(‘Machine1’) and works fine.

Now I want to run that script 3 times a day.  
So I try do it from the tag change on the gateway event script but I got an error and I think is because my actual script has some ‘gui’ commands. And I tried the client event scripts using the same tag change feature, but seems to me like is not running it.

So I wonder if there is a way to use an expression item in my transaction group that I can use to run my script 3 times a day.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [January 28, 2015, 8:56pm UTC](https://forum.inductiveautomation.com/t/running-a-project-script-from-client-event-or-expression-tag/9615/2 "2015-01-28T20:56:26Z")

</div>

If your script has GUI functions in it then it must run in a client. Transaction groups run on the server so that won’t work.

So you need to have a client open somewhere to run your script three times a day.

Automatically generating reports (using the Report Viewer) and automatically emailing them has been a problem for a long time because this cannot be done in the Ignition server, it has to be done in an Ignition client. So a client has to be open somewhere all the time in order for reports to be generated and emailed.

Best,
