Non-PS Template Questions

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 1 month and 1 week old and the forum Administrator has chosen for old topics to be locked when a reply is attempted. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
amoseng
Posts: 7
Joined: Mon Mar 26, 2018 1:44 am

Non-PS Template Questions

Post by amoseng »

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.181
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.19042.0

I'm trying to figure out how to create templates of filetypes that are non-powershell. I see there are some default existing templates for i.e. C# and textfile, but when I try to create a template from a file I got (i.e. .md, .yml, .json etc.) they do not show up in the list as I would expect.

When creating the file templates, they are located in "AppData\Roaming\SAPIEN\PowerShell Studio\Templates\File Templates\Other" and looks like they are saved as "template.filetype.pstemplate" and are marked as PSTEMPLATE FILE.

Why are these template files not showing up anywhere? :?:

I couldn't find much help in your blogs on this, or find any related posts, so I hope you can give me a poke regarding how to get these other template files created :)

Any help is much appreciated,
Best regards,
Moseng

User avatar
brittneyr
Site Admin
Posts: 689
Joined: Thu Jun 01, 2017 7:20 am
Answers: 10
Been upvoted: 8 times

Re: Non-PS Template Questions

Post by brittneyr »

When you have your file open in PowerShell Studio, open the file menu and select 'Create Template':
SPS_CreateTemplate.png
SPS_CreateTemplate.png (73.48 KiB) Viewed 860 times
A dialog should then appear and require you to fill out information regarding your template.
To then find your template, you need to open the 'New File' dialog. You can do this from by a keyboard shortcut (Ctrl + N) or from the Quick Access toolbar:
SPS_NewDocument.png
SPS_NewDocument.png (31.2 KiB) Viewed 860 times
From there you can navigate to Other, your templates should be listed:
SPS_NewFileOtherAll.png
SPS_NewFileOtherAll.png (114.05 KiB) Viewed 860 times
I'm aware that you stated that you are on an earlier version of PowerShell Studio, but this process has not changed.
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
amoseng
Posts: 7
Joined: Mon Mar 26, 2018 1:44 am

Re: Non-PS Template Questions

Post by amoseng »

This is the process I've followed. Tried it again, but the templates do not show up in the list after creation... From what I can tell, they are in the correct folder etc.

What can I do to check the import of templates is done correctly?

User avatar
brittneyr
Site Admin
Posts: 689
Joined: Thu Jun 01, 2017 7:20 am
Answers: 10
Been upvoted: 8 times

Re: Non-PS Template Questions

Post by brittneyr »

If the process was successful, your templates should appear in the dialog pictured. Please verify by doing the following for your file templates:
- Open the 'New File' as described above (Ctrl + N).
- From the navigation, select 'Files'.
- Change the filter to only show user template.
SPS_NewFileFileUserTemps.png
SPS_NewFileFileUserTemps.png (19.86 KiB) Viewed 843 times

If the templates are still not present, please upload the the file and pstemplate file as well as a screenshot of what you are seeing here:
https://www.sapien.com/support/upload
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
amoseng
Posts: 7
Joined: Mon Mar 26, 2018 1:44 am

Re: Non-PS Template Questions

Post by amoseng »

Aaaah, that little drop-down totally passed me by :D They're all present in the "User" space, as one would expect.

Thank you for some really good help! Very much appreciated :)

Wish you a great day, and rest of your week!

This topic is 1 month and 1 week old and the forum Administrator has chosen for old topics to be locked when a reply is attempted. Please begin a new topic or use the search feature to find a similar but newer topic.