home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!gurgle
- From: gurgle@netcom.com (Pete Gontier)
- Subject: Re: Easiest way to find my PSN (Process Serial Number)
- Message-ID: <x-znmmf.gurgle@netcom.com>
- Date: Tue, 15 Sep 92 05:49:13 GMT
- Organization: cellular
- References: <1992Sep14.213345.14845@midway.uchicago.edu>
- Lines: 20
-
- ejw1@kimbark.uchicago.edu (Eric Weidl) writes:
-
- > Is there any easy way to determine my own Process Serial Number?
-
- GetCurrentProcess. There are also constants which you can stuff
- into a PSN, but I can never remember their names, so I just call
- the trap. :-)
-
- > The reason I want to know my PSN is so that I can call
- >SetFrontProcess() to bring myself to the foreground in response to an
- >AppleEvent. I've tried every combination of parameters in AESend() and
- >AEInteractWithUser(), but to no avail. So, I thought I'd try
- >SetFrontProcess.
-
- This will certainly work, and I'm no expert on AE, but I believe the
- idea is to let the sender of the event decide whether your app should
- come to the front. Perhaps forcing your app to the front is not a
- desirable effect.
- --
- Pete Gontier // EC Technology // gurgle@netcom.com
-