macOSQuit
Contents:
macOSQuit(applicationName[, options])
Quits a MacOS application if running.
import {
macOSActivate,
macOSQuit,
MacOSApplications,
} from "@guidepup/guidepup";
(async () => {
// Open Safari.
await macOSActivate(MacOSApplications.Safari);
// ... perform some commands.
// Quits Safari.
await macOSQuit(MacOSApplications.Safari);
})();
Parameters:
applicationName
string Application identifier. See MacOSApplications.- Optional:
options
CommandOptions Additional options.