Skip to main content

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:

Returns: Promise<void>