title: How do a run a bash script on save in NetBeans?
body: <p>I am using NetBeans 6.5 and whenever I save a LessCSS file I would like to run less compiler to compile it to native css. How do I go about achieving this? 
  Many Thanks.
  Ravi</p>
  
  <p><strong>EDIT</strong>: I can do a build file as Kim recommended below. I am searching for a solution where I can run an external command. So the question now is How Do I Run an External Command using Ant?</p>