# Read tag properties with a script?

**URL:** <https://forum.inductiveautomation.com/t/read-tag-properties-with-a-script/12248>\
**Category:** Ignition\
**Created:** [October 17, 2016, 4:46pm UTC](https://forum.inductiveautomation.com/t/read-tag-properties-with-a-script/12248 "2016-10-17T16:46:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lifejustice2](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@lifejustice2](https://forum.inductiveautomation.com/u/lifejustice2)\
**Post date:** [October 17, 2016, 4:46pm UTC](https://forum.inductiveautomation.com/t/read-tag-properties-with-a-script/12248/1 "2016-10-17T16:46:32Z")

</div>

Hello. First time poster. I need help identifying the python function I need to complete a task…I have a goal of finding all of the tags with a specific property associated with it.

When I read the XML file, I am able to see all of the properties of all of the tags:  
  
\<[color=#BF00BF]Property name=“Documentation”[/color]\>Documentation  
\<[color=#BF00BF]Property name=“Tooltip”[/color]\>It’s gonna blow!  
  
…But I am not able to figure out how to identify the “Property Name” property of a tag using the tag functions in the ignition library.

[color=#0040FF]In short, I am trying to write a script to find all tags with the property name of “ToolTip” but I am unable to identify which tags have that property name. [/color]

Unfortunately, I don’t see any functions that expose the Property names. Am I missing anything? Can this be done with the existing functions?

Thanks for any help. Sorry if I did anything to break forum etiquette. 🙂

---

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [October 17, 2016, 5:59pm UTC](https://forum.inductiveautomation.com/t/read-tag-properties-with-a-script/12248/2 "2016-10-17T17:59:30Z")

</div>

Do you have to do this with export files?

You can accomplish this with just scripting.

Something like this would do it:

```auto
myTagFolder = "Devices"
tags = system.tag.browseTags(myTagFolder)
tooltipPaths = ["%s.tooltip" % tag.path for tag in tags]
tooltipResults = system.tag.readAll(tooltipPaths)

for tag, result in zip(tags, tooltipResults):
    if len(result) > 0:
        print tag.name, result.value
```

---

<div class="post-metadata">

**Author:** ![lifejustice2](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@lifejustice2](https://forum.inductiveautomation.com/u/lifejustice2)\
**Post date:** [October 18, 2016, 5:23pm UTC](https://forum.inductiveautomation.com/t/read-tag-properties-with-a-script/12248/3 "2016-10-18T17:23:23Z")

</div>

.
