Function “execute”
function execute(arguments)
Execute a process
This function launches an executable and waits until it exits. Note that this function is only supported on desktop operating systems.
Parameters
| Name | Type | Description |
|---|---|---|
arguments | array of strings | An array containing the executable name and any arguments passed to the process |
Return Value
Returns the exit code of the process.
Errors
The function may throw if there was an error starting the given executable, or if process execution is not supported on the platform.
Example
// convert an image to JPEG using the "convert" command line utility
execute(["convert", "input.tif", "output.jpg"])