0

I want to enable access for assistive devices programmatically.

Have another way to do this that not use

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

to open System Preferences?

Bart
  • 19,692
  • 7
  • 68
  • 77

1 Answers1

0

you can use apple script

tell application "System Events" to if not UI elements enabled then
    set UI elements enabled to true
end if
Parag Bafna
  • 22,812
  • 8
  • 71
  • 144