Search found 4 matches
- Thu Mar 27, 2025 11:37 pm
- Forum: Node.js scripting
- Topic: SwitchScriptTool is missing
- Replies: 0
- Views: 54416
SwitchScriptTool is missing
Ran into an issue after installing nvm on my Windows machine. Manually moved SwitchScriptTool back into ~/AppData/Local/nvm/16.17.0 to fix an issue where I couldn't invoke "SwitchScriptTool --transpile ." from the command line. Transpiling works, setting column values with script expressio...
- Thu Oct 17, 2024 10:36 pm
- Forum: Node.js scripting
- Topic: Here's a script to see all Private Data via the Jobs Pane
- Replies: 2
- Views: 18449
Here's a script to see all Private Data via the Jobs Pane
Found a good use for the "Custom" column in the job pane. Because its value can be set by a script expression, you can use it to see all the private data for a given job with this script expression. async function calculateScriptExpression(s: Switch, flowElement: FlowElement, job: Job): Pr...
- Fri Apr 26, 2024 6:56 pm
- Forum: Node.js scripting
- Topic: catch (err) -> err.message
- Replies: 3
- Views: 21706
Re: catch (err) -> err.message
Found an interesting, fairly straightforward way to log error messages. For some reason, wrapping error in a template literal automatically coerces the `unknown` error type to a `string` type instead. Haven't run into unexpected error handling with this yet, but hopefully it helps anyone running int...
- Fri Apr 19, 2024 6:22 pm
- Forum: Node.js scripting
- Topic: importing/require myclass.ts module
- Replies: 2
- Views: 19285
Re: importing/require myclass.ts module
Spent a few days back and forth trying to set configurations in tsconfig.json to fix this. After enough failures, found a very illogical answer to this. const myclass = require('./myclass'); should be const myclass = require('../myclass'); For whatever reason, NodeScriptExecutor.js defaults every si...