Greg Guerin <glgue...@amug.org> wrote: > Bill Janssen wrote: > > > I was afraid of that... Is there an easy way to do that from the > > command line given its PID? > > Use the osascript command. > > Form a query using a 'whose' clause to select the process ID. I > forget what the exact wording is, or whether to ask Finder or System > Events, so you'll have to experiment. To start, open the scripting > dictionary of System Events and under its Processes Suite, choose the > 'process' class and find its 'unix id' property. That's the thing > you need to use in a 'whose' clause. > > Then tell that application to quit.
In other words, write a little "application quitter" tool in Applescript. Should already be there, IMO. Bill _______________________________________________ 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