Jump to content
Ketarin forum

Using Ketarin variables inside Powershell command


Recommended Posts


I am fairly new to Ketarin and still trying to figure things out. I would like to run a powershell command after downloading that uses the "global" {appname} and the {version} variable I created for the package.

However the content of the variable(s) do not seem to be getting forwarded/piped to powershell. Am I doing something wrong?

Thank you

Link to comment
Share on other sites

Welcome aboard @Mundee. This is demonstrated pretty well in this thread.

While Ambimind uses variables for the parts of the calling function, if you already know the name, type and form of the variable, then you could use the abbreviated syntax. For Start/End and RegEx you use:

$x = $app.variables.MyVersionVariable.CachedContent

For Textual Content use:

$x = $app.variables.MyVersionVariable.TextualContent

In both samples "MyVersionVariable" is the name of the variable you'll be using instead of {MyVersionVariable}.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.