title: Make terminal script which runs a terminal command
body: <p>I am on a mac and want to make a batch script which runs a terminal commmand on double click.</p>
  
  <p>I have found several of tutorials but all of them shows how to echo something?</p>
  
  <p>What I want is to run this when I double click the script:</p>
  
  <pre><code>My-MacBook-Pro:platform-tools myname$ ./adb logcat -s Unity
  </code></pre>
  
  <p>I have saved this into a file called: mytest.command</p>
  
  <p>When doubleclicking this I get this:</p>
  
  <blockquote>
    <p>Last login: Wed Dec 17 09:26:04 on ttys001 My-MacBook-Pro:~ myname$
    /Users/myname/Documents/mytest.command ; exit;
    /Users/myname/Documents/mytest.command: line 1:
    My-MacBook-Pro:platform-tools: command not found logout</p>
  </blockquote>
  
  <p>How can I accomplish this?</p>
  
  <p>Any help is appreciated</p>