title: Run AppleScript from Cocoa Application
body: <p>Is it possible to run an AppleScript code inside an Cocoa Application?</p>
  
  <p>I've tried NSAppleScript class, but no success.</p>
  
  <p>Also, does Apple allow this?</p>