2012-10-22 2 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 
관련 문제