通过编程启用辅助设备访问



我想以编程方式启用辅助设备的访问。

有另一种方法是不使用

的方法
NSURL *prefPaneURL = [NSURL fileURLWithPath:[[paths objectAtIndex:0] stringByAppendingPathComponent:@"UniversalAccessPref.prefPane"]];
            [[NSWorkspace sharedWorkspace] openURL:prefPaneURL];

打开系统首选项?

您可以使用Apple脚本

tell application "System Events" to if not UI elements enabled then
    set UI elements enabled to true
end if

最新更新