Xref: utzoo comp.sys.mac.programmer:10833 comp.sys.mac:43341 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!usc!apple!sun-barr!decwrl!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer,comp.sys.mac Subject: Re: HELP!!! MultiFinder EXPERT NEEDED!!! Message-ID: <9161@hoptoad.uucp> Date: 2 Dec 89 08:49:12 GMT References: <328@hermix.UUCP> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 21 In article <328@hermix.UUCP> lance@hermix.UUCP (Lance Ellinghouse) writes: >What we need is to ask MultiFinder if a program is still running.. >Apple cannot tell me, and I cannot find the information anywhere.. >PLEASE HELP!! It should be possible to do this cleanly in System 7.0. In System 6.0.x, it's simple, but not totally clean. Just look in the Apple menu, using repeated GetItem calls, for the name of the application. (You can tell when you get to the end of the menu by doing a CountMItems.) The item containing the application's name will go away when the application quits. This may break on future systems, but it will continue to work on System 6.0.x for all time, so as long as you do a SysEnvirons and check the system version before doing this, you're cool. Now send me a million dollars. Thanks. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "I have recently been examining all the known superstitions of the world, and do not find in our particular superstition (Christianity) one redeeming feature. They are all alike founded on fables and mythology." -- Thomas Jefferson