title: Repeat Pop-Up Alert If Left Empty?
body: <p>I have created a pop-up alert using this code:</p>
  
  <pre><code>text=$(osascript -e 'tell app "System Events" to text returned of (display dialog "Pop-Up Text" default answer "")')
  </code></pre>
  
  <p>However, I would like this prompt to run over again if the answer is left blank. I tried the following:</p>
  
  <pre><code>if [$text == ""]; then text=$(osascript -e 'tell app "System Events" to text returned of (display dialog "Pop-Up Text" default answer "")'); fi
  </code></pre>
  
  <p>This works, however, if the pop-up is canceled or left blank the second time it doesn't reappear. </p>
  
  <p>I just need the pop-up prompt to keep appearing if the answer is left blank or is canceled.</p>