title: OS X shell scripting: How to pause execution till after Finder restarts?
body: <p>This is about shell scripting on Mac OS X. I want to write a bash script that relaunches the Finder and does something afterwards. How can I add a delay after the <code>killall</code> command so that the next command only executes once Finder has relaunched?</p>
  
  <pre><code>killall Finder
  # wait till Finder is relaunched
  # Do something else...
  </code></pre>