What is the javascript equivalent of the applescript run command?
Solution 1:
Finally found an answer myself from JXA-Cookbook:
ObjC.import('AppKit')
$.NSWorkspace.sharedWorkspace.launchApplication('[app path]')
Finally found an answer myself from JXA-Cookbook:
ObjC.import('AppKit')
$.NSWorkspace.sharedWorkspace.launchApplication('[app path]')