Loop until specified application quits


/ Published in: AppleScript
Save to your folder(s)

This example is the loop that waits until "mi.app" is quitted.


Copy this code and paste it in your HTML
  1. repeat
  2. try
  3. do shell script "ps -auxw | grep '[ m]i\.app'"
  4. on error
  5. exit repeat
  6. end try
  7. delay 1
  8. end repeat

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.