home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!news.oc.com!spssig.spss.com!uchinews!kimbark!ejw1
- From: ejw1@kimbark.uchicago.edu (Eric Weidl)
- Subject: Easiest way to find my PSN (Process Serial Number)
- Message-ID: <1992Sep14.213345.14845@midway.uchicago.edu>
- Sender: news@uchinews.uchicago.edu (News System)
- Reply-To: ejw1@midway.uchicago.edu
- Organization: Academic and Public Computing
- Date: Mon, 14 Sep 1992 21:33:45 GMT
- Lines: 19
-
-
- Howdy,
- Is there any easy way to determine my own Process Serial Number?
- After looking through IM VI, NIM:Processes and MacProgPrimer V1, it seems
- like the only way to do it is to loop through all current processes using
- GetNextProcess() until I find myself, then return the PSN. Is there an
- easier way?
-
- 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.
-
- Eric
- --
- ===================================================================
- Eric Weidl e-weidl@uchicago.edu
- University of Chicago -- Academic and Public Computing
- ===================================================================
-