On 12 Apr 09, at 23:55, Arjun SM wrote:
Use the 'do shell script' command
do shell script kill -9 PID
That should work.
No, actually, don't do that.

We are discussing Cocoa programming here. Running an Applescript that executes a shell script command that wraps a system call is an incredibly inefficient approach to the problem. (The correct way to do this would be using the kill() syscall... but keep reading.)
In any case, that's a terrible way to quit an application. If the  
application has any files open, it'll quit without getting a chance to  
save them properly - in particular, it won't prompt the user to save  
changes, which is a really fast path to making the user angry at your  
program.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to