title: With AppleScript how do I tell when a external app is finished doing what I want
body: <p>With AppleScript how do I tell when a external app is finished doing what I told it to do?</p>
  
  <p>EG,</p>
  
  <pre><code>my DoStuff1()
  
  my DoOtherAppThings()
  
  my DoStuff2()
  </code></pre>
  
  <p>So, instead of using wait(10) I need something like:</p>
  
  <pre><code>my waitUntilOtherAppIsDone()
  
  my DoStuff2()
  </code></pre>
  
  <p>Help accepted. </p>