2012-10-22 37 views
0

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

有另一种方式做到这一点,不使用

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

打开系统偏好设置?

回答

0

你可以使用苹果脚本

tell application "System Events" to if not UI elements enabled then 
    set UI elements enabled to true 
end if 
相关问题