2012-10-22 82 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 
相關問題