home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15478 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.3 KB  |  31 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!news.oc.com!spssig.spss.com!uchinews!kimbark!ejw1
  3. From: ejw1@kimbark.uchicago.edu (Eric Weidl)
  4. Subject: Easiest way to find my PSN (Process Serial Number)
  5. Message-ID: <1992Sep14.213345.14845@midway.uchicago.edu>
  6. Sender: news@uchinews.uchicago.edu (News System)
  7. Reply-To: ejw1@midway.uchicago.edu
  8. Organization: Academic and Public Computing
  9. Date: Mon, 14 Sep 1992 21:33:45 GMT
  10. Lines: 19
  11.  
  12.  
  13. Howdy,
  14.     Is there any easy way to determine my own Process Serial Number?  
  15. After looking through IM VI, NIM:Processes and MacProgPrimer V1, it seems 
  16. like the only way to do it is to loop through all current processes using 
  17. GetNextProcess() until I find myself, then return the PSN.  Is there an 
  18. easier way?
  19.  
  20.     The reason I want to know my PSN is so that I can call
  21. SetFrontProcess() to bring myself to the foreground in response to an 
  22. AppleEvent.  I've tried every combination of parameters in AESend() and 
  23. AEInteractWithUser(), but to no avail.  So, I thought I'd try SetFrontProcess.
  24.  
  25. Eric
  26. -- 
  27. ===================================================================
  28.                Eric Weidl    e-weidl@uchicago.edu
  29.       University of Chicago -- Academic and Public Computing
  30. ===================================================================
  31.