title: How to use Apple Script to control backlit keyboard?
body: <p>Is there a way to use an Apple Script to control the brightness of the backlit keyboard on a Macbook?</p>
  
  <p>The backlit keys are the <code>F5</code> and <code>F6</code>.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Based on the suggestion of <code>@Clark</code> I tried the follow, but it does not work.</p>
  
  <pre><code>    NSAppleScript *run = [[NSAppleScript alloc] initWithSource:@"tell application \"System Events\" to key code 96"];
      [run executeAndReturnError:nil];
  </code></pre>
  
  <p>Any suggestions?</p>