# runScript PathToTag Property

**URL:** <https://forum.inductiveautomation.com/t/runscript-pathtotag-property/91656>\
**Category:** Ignition\
**Tags:** scripting, ignition81\
**Created:** [June 10, 2024, 9:13pm UTC](https://forum.inductiveautomation.com/t/runscript-pathtotag-property/91656 "2024-06-10T21:13:42Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Cory.grube](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory.grube/32/20476_2.png) [@Cory.grube](https://forum.inductiveautomation.com/u/Cory.grube)\
**Post date:** [June 12, 2024, 8:32pm UTC](https://forum.inductiveautomation.com/t/runscript-pathtotag-property/91656/18 "2024-06-12T20:32:29Z")

</div>

> [@amarks](#):
>
> I can read `[Water]Pumps_Motors/2111-WP/Runtime_Starts/History/1/0/Chart.Path` with `system.tag.readBlocking()` so I should have access to it from the expression within the UDT, right?

Yup, you should be able to access it from anywhere.

> [@amarks](#):
>
> I have tried `{[.].path} with no luck`  
> ...  
> no dice for `{[.]this.path}` either

Big apologies, I made some very dumb mistakes on both of these suggestions. I'll update my previous posts.

First, I had the context for the relative path `{[.].path}` wrong. This would actually return the path of the parent folder, not the path of your expression tag.

Second, I had the syntax wrong for the [`this` keyword](https://docs.inductiveautomation.com/docs/8.1/platform/tags/tag-paths#using-the-this-keyword). Correct syntax is `{this.path}`.

Below are example outputs for `{[.].path}` and `{this.path}`:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/d/9d20eb3ef067101dd8f6287f49ca7d594d7bd439.png)

Does `{this.path}` solve your original issue?

---

_[View the full topic](https://forum.inductiveautomation.com/t/runscript-pathtotag-property/91656)._
