axuielement 0.9.1

Safe Rust bindings for Apple's AXUIElement — drive other apps' UIs (read attributes, perform actions) on macOS
Documentation
1
2
3
4
5
6
7
8
use core::ffi::c_char;

extern "C" {
    pub fn ax_process_trust_api_enabled() -> bool;
    pub fn ax_process_trust_is_trusted() -> bool;
    pub fn ax_process_trust_is_trusted_with_prompt(prompt: bool) -> bool;
    pub fn ax_process_trust_make_process_trusted(executable_path: *const c_char) -> i32;
}