# Display all scripting code of window and template components

**URL:** <https://forum.inductiveautomation.com/t/display-all-scripting-code-of-window-and-template-components/20262>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [October 18, 2018, 7:19pm UTC](https://forum.inductiveautomation.com/t/display-all-scripting-code-of-window-and-template-components/20262 "2018-10-18T19:19:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 13, 2023, 5:29pm UTC](https://forum.inductiveautomation.com/t/display-all-scripting-code-of-window-and-template-components/20262/4 "2023-07-13T17:29:10Z")

</div>

Most of the code should still be valid, you'll just have to extract the resources from the project differently. Some reference points to start from:

> [@Viewing more recently modified resources: possible?](https://forum.inductiveautomation.com/t/viewing-more-recently-modified-resources-possible/70585/2):
>
> If you're using my [Ignition Extensions](https://forum.inductiveautomation.com/t/ignition-extensions-convenience-utilities-for-advanced-users/64615) module, this is pretty trivial to do with the system.project.getProject() method: from com.inductiveautomation.ignition.common.project.resource import ResourceType from com.inductiveautomation.ignition.common.util import ResourceUtil def getMostRecent(moduleId, typeId): project = system.project.getProject() allResources = [ resource for resource in project.getResourcesOfType(ResourceType(moduleId, typeId)) if project.isLocal(resource.resourcePa…

> [@Auto-Export all Vision window Documentation](https://forum.inductiveautomation.com/t/auto-export-all-vision-window-documentation/72643/2):
>
> With [Ignition Extensions](https://forum.inductiveautomation.com/t/ignition-extensions-convenience-utilities-for-advanced-users/64615) installed, you could call system.project.getProject() to get an instance of the [Project](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.26/com/inductiveautomation/ignition/common/project/Project.html) Java class. From there, call getResourcesOfType with a resource type of com.inductiveautomation.factorypmi.common.VisionModule.WINDOW\_RESOURCE (this'll only work directly in the designer; doing it from the gateway scope will be a bit trickier). That will give you a list of ProjectResources, which have a [getDocumentation](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.26/com/inductiveautomation/ignition/common/project/resource/ProjectResource.html#getDocumentation()) method. Technically, Ignition Extensions is not required (you c…

> [@Autogenerate Views inside the Perspective View Folder Structure (Self Aware SCADA)](https://forum.inductiveautomation.com/t/autogenerate-views-inside-the-perspective-view-folder-structure-self-aware-scada/63204/2):
>
> I can offer some tips, but be aware that everything you do here is outside the realm of supported territory, so you will have to do a lot of the legwork yourself. To start, you’ll need to get to the project. from com.inductiveautomation.ignition.designer import IgnitionDesigner context = IgnitionDesigner.getFrame().context Will get you a [DesignerContext](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.19/com/inductiveautomation/ignition/designer/model/DesignerContext.html). DesignerContext has a method getProject(), which gives you a [DesignableProject](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.19/com/inductiveautomation/ignition/designer/project/DesignableProject.html). DesignableProject has a ton of utility methods. You will …

---

_[View the full topic](https://forum.inductiveautomation.com/t/display-all-scripting-code-of-window-and-template-components/20262)._
