Page 1 of 1

Using other languages for scripting?

Posted: Mon Sep 09, 2024 10:46 pm
by Soul Forge
I saw a Linked In post about someone mentioning using C# with Switch (the post was shared by the Enfocus profile also), so It made me wonder: Is there a way to use Python or other languages to create scripts for Switch, or we're restricted to only using Javascript/Typescript?

Thanks in advance!

Re: Using other languages for scripting?

Posted: Tue Sep 10, 2024 5:51 am
by jan_suhr
To reach stuff in Switch you need the NodeJS scripting, that's the only way to reach the commands in Switch.

But for external applications that should do something to a file running thru Switch you can use any Scripting, like Python, that can be run with a CLI command. And then use the Execute command app to run the script

Re: Using other languages for scripting?

Posted: Wed Sep 11, 2024 12:44 pm
by tdeschampsBluewest
You could totally use any language, as long it can be executed with a command line interface.

Either with the CLI element in switch, or trough NPM package that will execute CLI in async/await mode.