Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!cs.utexas.edu!ut-emx!jdm From: jdm@ut-emx.UUCP (Jim Meiss) Newsgroups: comp.sys.mac.programmer Subject: Finding out What Application is Running Keywords: Desk Accessories, CurApName Message-ID: <9065@ut-emx.UUCP> Date: 27 Dec 88 22:12:50 GMT Organization: The University of Texas at Austin, Austin, Texas Lines: 15 In my desk accessory, I need to tell whether I've been opened under Excel, because Excel always keeps its edit window as the frontmost window. Currently I just check CurApName to see if it includes the string "Excel". Of course that only works if someone hasn't renamed Excel to something else (perverse person!). Anyway, does anyone have a better idea? I always get nervous using a low memory global! Thanks. Jim Meiss jdm@emx.utexas.edu jdm@fusion.utexas.edu