title: Using an apple script to copy then do a terminal command
body: <p>This is my first time creating an apple script.</p>
  
  <p>I am trying to create a script on my mac so that it duplicates a folder called '1-Client Template', I then want Terminal to ask me what I would like to rename it to and then finally run a few terminal commands.</p>
  
  <p>Here's the terminal commands I want it to run</p>
  
  <pre><code>cd ~/Documents/Clients/TEMPLATE/Projects/Website/5-Website &amp;&amp; git init &amp;&amp; git add . &amp;&amp; git config --global user.email 'name@email.com' &amp;&amp; git config --global user.name 'Full Name' &amp;&amp; git commit -m 'initial commit, added all website files' &amp;&amp; git status
  </code></pre>
  
  <p>I know the ask for input part is certainly wrong but I can't figure this bit out. This is my script so far... </p>
  
  <pre><code>tell application "Finder"
      if exists Finder window 1 then
          set ~/documents/Clients/1-Client\ Template to ~/documents/Clients/ask for input
      else
          return
      end if
  end tell
  tell application "Terminal"
      do shell script "cd ~/Documents/Clients/TEMPLATE/Projects/Website/5-Website &amp;&amp; git init &amp;&amp; git add . &amp;&amp; git config --global user.email 'name@email.com' &amp;&amp; git config --global user.name 'Full Name' &amp;&amp; git commit -m 'initial commit, added all website files' &amp;&amp; git status
  "
      activate
  end tell
  
  </code></pre>
  
  <p>I made this code looking at other online examples but I'm not quite getting it.</p>
  
  <p>I'm getting the following error</p>
  
  <pre><code>Expected expression but found unknown token.
  </code></pre>