Posted By

brandonjp on 07/07/10


Tagged

textmate applescript commandline terminal kill close automator quit sugarsync


Versions (?)

AppleScript to force quit an app - sugar sync kill SugarSyncCMPlugInLoader


 / Published in: AppleScript
 

  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  

You need to login to post a comment.