title: Applescript "do shell script with administrator privileges" in Background Hangs
body: <p>On Mavericks, this works fine... [Substitute "sleep 30" with whatever long-running process you'd like.]</p>
  
  <pre><code>prompt% osascript -e 'do shell script "sleep 30 &gt;/dev/null 2&gt;&amp;1 &amp;"'
  </code></pre>
  
  <p>But this doesn't actually fork into the background; it waits the full 30 seconds:</p>
  
  <pre><code>prompt% osascript -e 'do shell script "sleep 30 &gt;/dev/null 2&gt;&amp;1 &amp;" with administrator privileges'
  </code></pre>
  
  <p>It worked okay prior to Mavericks...  Does anybody know how to make "do shell script" return right away, without waiting for its descendant processes to finish?</p>
  
  <p>PS – I've even tried things like:</p>
  
  <pre><code>prompt% cat /tmp/sleep.sh
  #!/bin/sh
  
  (sleep 30 &gt;/dev/null 2&gt;&amp;1 &amp;)
  
  prompt% osascript -e 'do shell script "sh /tmp/sleep.sh" with administrator privileges'
  </code></pre>
  
  <p>i.e., create a shell script that completely disowns the sleep process...  No dice.  I also thought that maybe using setpgrp() to change the process group to something else (via a Perl wrapper) might help...  Nada.  :-(</p>