ReadonlyallAll windows of this application
ReadonlybundleBundle Identifier (e.g. com.apple.Safari)
ReadonlybundleLocation of the application on disk
ReadonlyfocusedThe focused window of this application, or nil if there is no focused window
ReadonlyisIs the application focused
Is the application hidden
ReadonlyisWhether the application process is still running
ReadonlykindThe kind of application: "standard" (regular dock app), "accessory" (no dock), or "background" (agent)
ReadonlymainThe main window of this application, or nil if there is no main window
ReadonlypidPOSIX Process Identifier
ReadonlytitleThe application's title
ReadonlyvisibleAll visible (ie non-hidden) windows of this application
Bring this application to the foreground
OptionalallWindows: booleanPass true to raise all application windows. Defaults to false.
The application's HSAXElement object, for use with the hs.ax APIs
An HSAXElement object, or nil if it could not be obtained
Find a menu item by searching all menus for a matching title (case-insensitive)
The menu item title to search for
An object with title and enabled keys, or null if not found
Find a menu item by following a hierarchical path of titles
An array of menu titles forming a path from the top-level menu to the item, e.g. ["Edit", "Select All"]
An object with title and enabled keys, or null if not found
Find windows whose title contains the given string (case-insensitive)
A string to search for in window titles
An array of matching HSWindow objects
Get the first window with exactly the given title
The exact window title to search for
The matching HSWindow, or null if not found
Hide this application and all its windows
Terminate the application
True if the application was terminated, otherwise false
Force-terminate the application
True if the application was force-terminated, otherwise false
Click a menu item found by searching all menus for a matching title (case-insensitive)
The menu item title to search for
true if the menu item was found and clicked, false otherwise
Click a menu item found by following a hierarchical path of titles
An array of menu titles forming a path from the top-level menu to the item, e.g. ["File", "New Window"]
true if the menu item was found and clicked, false otherwise
Unhide this application
Object representing an application. You should not instantiate this directly in JavaScript, but rather, use the methods from hs.application which will return appropriate HSApplication objects.