#powershellhelp — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #powershellhelp, aggregated by home.social.
-
Fun with variable scopes in PowerShell
So variable scopes. This can be fun, or really, quite maddening. My latest project is bridging PowerShell to AppleScript’s Choose File. Most of it has been easy, but the hard part has been the “of type” parameter, because it’s big. Like my current list uses around 1300 file extensions and file types to generate a list of Type Identifiers that can be use with “of type” because Type Identifiers are literally the only reliable thing to use there. Fun times.
Anyway, there’s a 7000-line Switch-Case statement that builds a massive arraylist of Type Identifiers in the main body of the script. Now, I need to use that in a function, but obvs I don’t want to pass THAT. So at first I tried a trick that was documented and seemed to work, namely pointing a function variable at the arraylist via:
$myList = $Global:myArrayListWhere $myList is the function variable and myArrayList is the main script var. This seemed to work well, at least inside of VSCode.
Then I went to test it in a straight PowerShell terminal. Two hours later, I realized that in a “normal” PowerShell terminal, $myList was not getting any kind of value. I don’t know if that’s a bug or intended, but once I realized it, the fix was easy, just declare the initial arraylist as global:
$Global:myArrayList = New-Object System.Collections.ArrayListand you’re set. Ye. Gods. that sucked.
-
PowerShell HelpWriter 3.0.68 released with redesigned Start page, notification settings changes, and various other updates and fixes. 👍
Build details:
👉 https://bit.ly/4b2Zlqa#SAPIENTech #PowerShellHelpWriter #PowerShellHelp #PowerShell #pwsh #scripting #NewRelease
-
PowerShell HelpWriter 3.0.68 released with redesigned Start page, notification settings changes, and various other updates and fixes. 👍
Build details:
👉 https://bit.ly/4b2Zlqa#SAPIENTech #PowerShellHelpWriter #PowerShellHelp #PowerShell #pwsh #scripting #NewRelease
-
PowerShell HelpWriter 3.0.68 released with redesigned Start page, notification settings changes, and various other updates and fixes. 👍
Build details:
👉 https://bit.ly/4b2Zlqa#SAPIENTech #PowerShellHelpWriter #PowerShellHelp #PowerShell #pwsh #scripting #NewRelease
-
Our Free Tools have a fresh look with new icons. 🤩
Go to Free Downloads on the SAPIEN Software page:
👉 https://www.sapien.com/software#SAPIENTech #PowerShell #pwsh #scripting #PrimalPad #PowerShellProfileEditor #PowerShellHelp #PowerRegEx #FreeTools #FreeDownloads
-
Our Free Tools have a fresh look with new icons. 🤩
Go to Free Downloads on the SAPIEN Software page:
👉 https://www.sapien.com/software#SAPIENTech #PowerShell #pwsh #scripting #PrimalPad #PowerShellProfileEditor #PowerShellHelp #PowerRegEx #FreeTools #FreeDownloads
-
Our Free Tools have a fresh look with new icons. 🤩
Go to Free Downloads on the SAPIEN Software page:
👉 https://www.sapien.com/software#SAPIENTech #PowerShell #pwsh #scripting #PrimalPad #PowerShellProfileEditor #PowerShellHelp #PowerRegEx #FreeTools #FreeDownloads
-
The latest versions of #PrimalScript and #PowerShellStudio include new #PowerShell #Help import features. 👍
This blog explains the new features
https://www.sapien.com/blog/2024/02/16/help-is-on-the-way/ -
Need Help? #PrimalScript and #PowerShellStudio have new #PowerShell #Help import features! 👍 👍
-
#PowerShellStudio build 5.8.238 has been released with new Script Packager features, a new #PowerShell #Help import tool, and more! 👍 🙌
Build details:
👉 https://bit.ly/3Sp4NMV#SAPIENTech #pwsh #scripting #ScriptPackager #PowerShellHelp #NewRelease
-
#PrimalScript build 8.1.200 was released earlier this week with some new features. 👍
Stay tuned for info about the new #PowerShell Help features! 🙌
Build details:
👉 https://bit.ly/4b3ELWY#SAPIENTech #pwsh #scripting #ScriptPackager #PowerShellHelp #NewRelease
-
I wish ## worked in #vscode for a script instead of just a function.
#powershell #powershellhelp -
I wish ## worked in #vscode for a script instead of just a function.
#powershell #powershellhelp -
I wish ## worked in #vscode for a script instead of just a function.
#powershell #powershellhelp -
I wish ## worked in #vscode for a script instead of just a function.
#powershell #powershellhelp -
I wish ## worked in #vscode for a script instead of just a function.
#powershell #powershellhelp