title: How to prompt a user for a name to create a folder (bash | shell script)?
body: <p>First off, this is my first go at shell scripting. I have only experience in HTML and CSS :]</p>
  
  <p>What I want to do is setup a simple <strong><em>folder structure</em></strong> and <strong><em>prompt the user in a dialog box to set a name</em></strong> for the root folder. I'll trigger this shell script via an OS X Service or a Keyboard Maestro hotkey. </p>
  
  <p>This is what I've come up with so far:</p>
  
  <pre><code>#!/bin/sh
  
  echo -n "Enter the project name:"
  read -e NAME  
  
  mkdir -p ~/Desktop/$NAME
  mkdir -p ~/Desktop/$NAME/subfolder1
  mkdir -p ~/Desktop/$NAME/subfolder2
  </code></pre>
  
  <p>Obviously there's some error - the variable won't get passed on and the root folder isn't created. I also read that I should use "dialog" to ask for the input, but I wasn't capable of writing something that works.</p>
  
  <p>Your help is greatly appreciated. Thanks.</p>