>I'd like to write a simple extension (INIT) that does nothing more than >watch for certain applications that are running and provide a hot key >switching between them. Probably something simple like using the process >manager for bringing the app to the front (if that can be done from within >an INIT). > >No interface would be required for setting the hot key (hard coded). Sure >be nice to find something to do with those Function key across the top. > >Anyone done anything like this or got some bomb proof init code? This isn't such a long shot--just use the INIT shell that came with FB. It has already patched GetNextEvent and has a case structure which includes a keydown event. All you have to do is check which key is pressed, then if it's your hot key, call whatever local fn you desire. FB also has some excellent Process Manager code in the examples folder which will show you how to get the current process number and name. To cycle through a list of the currently running processes, look up the example code in Think Reference or Inside Macintosh: Processes (available for downloaad from the Macintosh web site). I'm not sure offhand how to change the current process, but this information will be in Inside Macintosh (it's a short volume). As long as you don't need to do any other patches, you'll be fine. The problems I've written about elsewhere in my own code were caused by my needing to have a number of different patches in the same INIT code. This is much more difficult to structure. Maybe if I get this new structure working properly (with Mars' expert coaching) I'll post a souped-up INIT shell on one of the websites, if people are interested. ____________ wave (Toronto, Canada) Much better at "OOPS!" programming than OOP programming.