JXA 中关于 Application.launch() 的文档?

Documentation on Application.launch() in JXA?

我在哪里可以找到关于 JXA 中 Application.launch() 的文档?

Application('Safari').launch();

似乎 Application.launch() 与 Application.activate() 不同,只启动应用程序进程而没有实际打开或激活应用程序 window。

我在网上搜索了一下,没有找到关于这个功能的文档。

启动命令:

Launches an application, if it is not already running, but does not send it a run command.

If an application is already running, sending it a launch command has no effect. That allows you to open an application without performing its usual startup procedures, such as opening a new window or, in the case of a script application, running its script. For example, you can use the launch command when you don’t want an application to open and close visibly.

通过https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW51

请注意,虽然上述文档适用于 AppleScript,但它也主要适用于 JXA。