title: How do I launch an executable without opening Terminal?
body: <p>I've written a simple command-line executable file, and am trying to make it launch whenever I open its enclosing folder. I'm using a folder action that opens an AppleScript. So far, the AppleScript is:</p>
  
  <pre><code>    tell application "Finder"
          open document file "Feed the Beast Launcher" of folder "Feed The Beast" of folder "Desktop" of folder "Matthew" of folder "Users" of startup disk
      end tell
  </code></pre>
  
  <p>and the executable file is:</p>
  
  <pre><code>    export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
      java -jar ~/Desktop/Feed\ The\ Beast/FTB_Launcher.jar
  </code></pre>
  
  <p>Can you help?</p>