Force Quit OS X apps

Does anyone know how I can force quit an application (in this case FileMaker Pro) on an OS X machine using AppleScript? I’ve searched this board and found the “Die” Scripting Addition, but it was published in 1998 and appears to be broken in OS X.

This should do it for you


do shell script "killall "FileMaker Pro"

This assumes that FMP is launched by the same user trying to kill it, otherwise you might have to add the “with administrator privelages” tag in the Applescript

That seems to work! Although there needs to be one more quote mark at the end of the line to close the quotation.

Thanks!

Oops. I should change my name to typo king on this site.

FYI: Die is NOT “broken” in OS X . It is a scripting addition for OS8-8.6 & 9.2

I used it regularly when I had OS 8.6 . :idea:

I use a system of both extra suites and “ikey” to force quit
two applications. One of them “ghost recon” is really really hard
to quit. I couldn’t script a force quit app that works. You can
get the “ikey” application and the extra suites app from
http://home.comcast.net/~daniel213750/bigtex.html under
server program.

“ikey” has a force quit option that is tied to a keystroke combo, and the
extra suites can activate that keystroke combo.

It’s a applescript nooby solution, but it does work!