Skip to main content

Module target

Module target 

Source
Expand description

Application and window selectors.

Resolution runs against a table the backend filled in. Unit tests pass a fake table and never call AppKit or CoreGraphics.

Structs§

AppInfo
One running application, as returned by list_apps.
DoctorIdentity
Binary identity doctor reports so the user can see which TCC subject is active.
DoctorReport
doctor report. Null probes mean this OS does not check them yet.
LaunchResult
An application that was launched or activated.
ListedWindow
A window row before z-order indexes are assigned.
PermissionFix
One missing permission and the Settings pane that grants it.
QuitResult
quit result.
ResolvedTarget
Result of resolving an app and an optional window.
ResponsibleApp
The GUI app that owns this process for TCC prompts.
WindowBounds
Rectangle in logical screen points.
WindowInfo
One window, as returned by list_windows.
WindowList
Windows plus an optional note about how they were collected.

Enums§

ActivationPolicy
How macOS classifies a process. Helpers are accessory or prohibited.
AppSelector
How the caller named an application.
WindowSelector
How the caller named a window.

Functions§

assign_z_order
Assign z-order from the CG array order. Index 0 is the front window.
bounds_match_frame
True when frame is within 2 points of bounds on each edge and size.
canonical_exe_path
Canonicalize when the path exists. Otherwise keep the original path.
filter_windows_for_pid
Keep one process and renumber z-order so 0 is that app’s front window.
parse_app_selector
Parse name, bundle id, pid, or a path.
parse_window_selector
Parse a window title, z-order index, index:N, or id:N.
resolve
Resolve an app and, when requested, one of its windows.
resolve_app
Resolve selector against apps.
resolve_window
Resolve an optional window inside an already filtered list.