AppleScript to force quit an app - sugar sync kill SugarSyncCMPlugInLoader


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



Copy this code and paste it in your HTML
  1. set badapp to "SugarSyncCMPlugInLoader"
  2.  
  3. do shell script "ps ax | grep -i " & quoted form of badapp & " | grep -v grep | cut -c 1-6"
  4. set pNum to result
  5. try
  6. do shell script "kill -9 " & pNum
  7. end try

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.