# Run script from timer gateway event script

**URL:** <https://forum.inductiveautomation.com/t/run-script-from-timer-gateway-event-script/55498>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [January 28, 2022, 6:19pm UTC](https://forum.inductiveautomation.com/t/run-script-from-timer-gateway-event-script/55498 "2022-01-28T18:19:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [January 28, 2022, 6:19pm UTC](https://forum.inductiveautomation.com/t/run-script-from-timer-gateway-event-script/55498/1 "2022-01-28T18:19:34Z")

</div>

Really simple question for most of you, but I can’t find it in docs or on the forum.

I want to run a timer gateway event script. It works fine when I log a string into my logger, but I can’t seem to execute a simple script.

I’m trying to run scriptFolderName.ScriptName.FunctionName().  
I’ve read I should put ‘project.’ in front of it, but that doesn’t do anything.  
What is the right syntax?

Jasper

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [January 28, 2022, 6:23pm UTC](https://forum.inductiveautomation.com/t/run-script-from-timer-gateway-event-script/55498/2 "2022-01-28T18:23:09Z")

</div>

Make sure the script is in the Gateway Scripting project.

[https://docs.inductiveautomation.com/display/DOC81/Project+Library#ProjectLibrary-GatewayScriptingProject](https://docs.inductiveautomation.com/display/DOC81/Project+Library#ProjectLibrary-GatewayScriptingProject)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 28, 2022, 6:37pm UTC](https://forum.inductiveautomation.com/t/run-script-from-timer-gateway-event-script/55498/3 "2022-01-28T18:37:33Z")

</div>

> [@deon.korb](#):
>
> script is in the Gateway Scripting project

No, timer events are in a project. So the project script module must be in that same project, or one of the projects it inherits from.

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [January 28, 2022, 7:02pm UTC](https://forum.inductiveautomation.com/t/run-script-from-timer-gateway-event-script/55498/4 "2022-01-28T19:02:40Z")

</div>

You are correct.

---

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [January 28, 2022, 7:43pm UTC](https://forum.inductiveautomation.com/t/run-script-from-timer-gateway-event-script/55498/5 "2022-01-28T19:43:20Z")

</div>

So what would be the syntax to call my script?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 28, 2022, 7:45pm UTC](https://forum.inductiveautomation.com/t/run-script-from-timer-gateway-event-script/55498/6 "2022-01-28T19:45:40Z")

</div>

The syntax in your OP is correct. Omit the `project.` prefix. That is only relevant to systems upgraded from v7.9 or earlier (and `project` will show as a folder).

---

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [February 4, 2022, 2:28pm UTC](https://forum.inductiveautomation.com/t/run-script-from-timer-gateway-event-script/55498/7 "2022-02-04T14:28:24Z")

</div>

Ok, I will try that. Thanks!
