title: AppleScript "do shell script" ignores PATH Variable
body: <p>I'm trying to build an automated build script with applescript on MacOS X.</p>
  
  <p>For now everything works correctly with one glitch.</p>
  
  <p>The command <strong>"do script ("zipalign -f -v 4 /tmp/src.apk /tmp/tgt.apk")</strong> works fine if I run it in a separate tell for application "Terminal" but leaves the terminal window open when it's done. Everything else in the script works fine in tells for application "Finder".</p>
  
  <p>If I try to run the command via <strong>"do shell script"</strong> inside the tell for "Finder" I only get an error <strong>"command not found"</strong>.</p>
  
  <p>The path to <strong>zipalign</strong> is set in <strong>/etc/paths</strong> and is reachable through any terminal window and <strong>"do shell"</strong> but not to <strong>"do shell script"</strong> command.</p>
  
  <p>What is the correct way to ensure that <strong>"do shell script"</strong> uses $PATH to find commands or alternatively is there a bulletproof way to close the terminal left by <strong>"do script"</strong>?</p>