title: Accessibility settings for non-GUI apps using AppleScript in OSX Mavericks?
body: <p>In previous versions of OS X, to allow AppleScript to be run you needed to check “Enable access for assistive devices” in the Accessibility pane of System Preferences.</p>
  
  <p>With Mavericks, this is now a per-app setting that is enabled from Security &amp; Privacy -> Accessibility. How do I enable assistive access if the script is being run from the command line with osascript from within a Jenkins task? As far as I understand, there is no GUI task to authorize then; I get no message dialog asking for permissions. The error message I get in the Jenkins output is:</p>
  
  <pre><code>take_screenshot_iossim.sh:246:303: execution error: System Events got an error: osascript is not allowed assistive access. (-1719)
  </code></pre>
  
  <p>I also tried adding all applications to the permissions dialog and still receive the permissions denied error.</p>