title: Code::Blocks console program problems on OSX
body: <p>I usually do console application programs in CodeBlocks for algorithm problems and have recently switched to an OSX Mountain Lion machine. After installing xCode and CodeBlocks SP1 I have a problem.</p>
  
  <p>When I run a program, a console terminal should appear with the output. This code was in the preferences, but it does not do it's job:</p>
  
  <pre><code>osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script "$SCRIPT"' -e 'end tell'
  </code></pre>
  
  <p>Is there a possibility I could launch an iTerm2 window?</p>