# SUGGESTION- Auto set Edge scripting project

**URL:** <https://forum.inductiveautomation.com/t/suggestion-auto-set-edge-scripting-project/27019>\
**Category:** Ignition\
**Created:** [July 30, 2019, 8:54pm UTC](https://forum.inductiveautomation.com/t/suggestion-auto-set-edge-scripting-project/27019 "2019-07-30T20:54:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![NorthPoint](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@NorthPoint](https://forum.inductiveautomation.com/u/NorthPoint)\
**Post date:** [July 30, 2019, 8:54pm UTC](https://forum.inductiveautomation.com/t/suggestion-auto-set-edge-scripting-project/27019/1 "2019-07-30T20:54:31Z")

</div>

Since you can’t actually have more than the “Edge” project on an Edge node, it would make sense and be helpful if on setup you set the “Scripting Project” to “Edge”.

---

<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:** [July 30, 2019, 9:07pm UTC](https://forum.inductiveautomation.com/t/suggestion-auto-set-edge-scripting-project/27019/2 "2019-07-30T21:07:17Z")

</div>

Agreed.

---

<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:** [July 30, 2019, 9:41pm UTC](https://forum.inductiveautomation.com/t/suggestion-auto-set-edge-scripting-project/27019/3 "2019-07-30T21:41:37Z")

</div>

Since when are gateway scripts supported on Edge?

---

<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:** [July 30, 2019, 10:00pm UTC](https://forum.inductiveautomation.com/t/suggestion-auto-set-edge-scripting-project/27019/4 "2019-07-30T22:00:02Z")

</div>

Ah, right…

@NorthPoint what are you finding you need this set for?

---

<div class="post-metadata">

**Author:** ![NorthPoint](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@NorthPoint](https://forum.inductiveautomation.com/u/NorthPoint)\
**Post date:** [July 30, 2019, 10:42pm UTC](https://forum.inductiveautomation.com/t/suggestion-auto-set-edge-scripting-project/27019/5 "2019-07-30T22:42:54Z")

</div>

Since when are they not? Why would runScript be supported in tags if it was not? And what exactly would be the goal in taking that functionality away anyway?

The purpose in this case is because MQTT does not expose the (real) external IP address of the Edge, and my customer wants/needs to know what the external IP address is, even if it changes due to DHCP. So I allow them to trigger a script on the Edge (from the cloud) that uses a simple HTTP api to fetch that into a string tag, which is then displayed on their screen.

---

<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:** [July 30, 2019, 10:54pm UTC](https://forum.inductiveautomation.com/t/suggestion-auto-set-edge-scripting-project/27019/6 "2019-07-30T22:54:24Z")

</div>

I can never keep track of the Edge restrictions.

The user manual says:

> All Gateway level scripting is **disabled** including Gateway Event Scripts and Tag Event scripts. This does not affect project or client scoped scripts.

But yes, you can make project scripts, and I guess a `runScript` expression targeting a script in the Edge project would need that setting to be configured correctly.

I'm not sure if this counts as a loophole in the Edge restrictions or not though. `runScript` in a tag shouldn't even work on Edge according to the documented restrictions.

---

<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:** [July 31, 2019, 1:00am UTC](https://forum.inductiveautomation.com/t/suggestion-auto-set-edge-scripting-project/27019/7 "2019-07-31T01:00:51Z")

</div>

If it runs in an expression tag, that would be a loophole.

---

<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 12, 2019, 4:09pm UTC](https://forum.inductiveautomation.com/t/suggestion-auto-set-edge-scripting-project/27019/8 "2019-08-12T16:09:19Z")

</div>

Heads up, the `runScript` on gateway-scoped tags loophole is being closed. It will still work in client tags.
