Run an App From Code

To launch another application from your app, you should first create an app instance and then invoke its run() method. For example:

Example 1: static app module import
import { MyOtherApp } from "nodeacta:Samples.MyOtherApp";
...
var otherApp = new MyOtherApp( maybe some args: AppArguments );
var result = await otherApp.run();
Example 2: dynamic app module import
const { MyOtherApp } = await import('nodeacta:Samples.MyOtherApp');
...
var otherApp = new MyOtherApp( maybe some args: AppArguments );
var result = await otherApp.run();
Example 3: Show Focused App Properties Window
const { PropertiesApp } = await import('nodeacta:System.PropertiesApp');
let app = new PropertiesApp(ui.navigation.focused.app);
app.run();