title: Issue running bash script at if statement
body: <p>I am just getting starting in AppleScript and am testing out an existing script to see if I can get it to run on my computer. The error I get is here:</p>
  <p>Expected “,” or “]” but found unknown token.</p>
  <p>and it highlights the ~ in my if statement:</p>
  <pre><code>path=&quot;/Library/Desktop Pictures/Wallpaper-Blue-3D-logolow-2846x1600.jpg&quot;
      
      if [ -d ~/Library/Desktop\ Pictures/ ]
      then
              echo &quot;Desktop Pictures directory already exists&quot;
      else
              mkdir ~/Library/Desktop\ Pictures/
      fi
  </code></pre>
  <p>What am I missing? Thanks!!</p>