Showing Posts For nuklehed.5418:

Black Lion Trading company

in Account & Technical Support

Posted by: nuklehed.5418

nuklehed.5418

I wrote a quick AppleScript that will kill the troublesome processes and start GW2. The script assumes the name of the application is “Guild Wars 2”.

  1. Open ‘AppleScript Editor’ by typing that in Spotlight or by opening it in your Applications > Utilities folder.
  2. Copy/Paste this code below into the editor.
  3. Click the File > Save… menu item to save your hard work
  4. Save As: ‘GW2’ (or anything you want)
  5. Where: Desktop
  6. File Format: Application (Application file format means you just have to double click and you’re good to go.)

Copy everything below this line:

set app_name to “Finder”

— Kill CVMCompiler
set the_pid to (do shell script "ps ax | grep " & “CVMCompiler” & " | grep -v grep | awk ‘{print $1}’")

to split(the_pid, "")
repeat with a_pid in the_pid
if a_pid is not "" then do shell script ("kill -9 " & a_pid)
end repeat
end split

— Kill cookied
set the_pid to (do shell script "ps ax | grep " & “cookied” & " | grep -v grep | awk ‘{print $1}’")
if the_pid is not "" then do shell script ("kill -9 " & the_pid)
-- log the_pid & " process was stopped."

tell application “Guild Wars 2” to activate