home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22084 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.5 KB

  1. Path: sparky!uunet!wupost!udel!gvls1!jabber!distant!edw
  2. From: edw@distant.uucp (Ed Watkeys)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Is the Finder's name always "Finder"?
  5. Date: Sun, 24 Jan 93 09:13:15 EST
  6. Organization: Distant Software
  7. Message-ID: <01050133.og3hb4@distant.uucp>
  8. Reply-To: edw@distant.uucp
  9. X-Mailer: uAccess - Macintosh Release: 1.6v2
  10. Lines: 26
  11.  
  12.  
  13. In article <walkerj.727644025@milo.math.scarolina.edu> (comp.sys.mac.programmer), walkerj@math.scarolina.edu (Jim Walker) writes:
  14. > I see that Finder's name is locked (under System 7), but is that always the
  15. > name, even under foreign system software?  If not, what is the best way to
  16. > get the name?  (I know how to read it from the boot blocks, and I know that
  17. > there is a low-memory global FinderName, but I wonder if there is a better
  18. > way.)
  19. >
  20.  
  21. Since the signature stays the same (I assume), you can get it's name by
  22. cycling through GetNextProcess() (IM VI 29-11) until you find the Finder's
  23. process serial number and then use GetProcessInformation() (IM VI 29-10)
  24. to get its name. Of course, if the Finder isn't running, you're screwed in
  25. this case.
  26.  
  27. Using PBCatSearch() (IM VI 25-40) would work in all cases, as far as I can
  28. see. Just set the criteria to be the Finder's type/creator, and let it go.
  29.  
  30. >  -- Jim Walker  USC Dept. of Math.  walkerj@math.scarolina.edu
  31.  
  32. Ed
  33.  
  34. --
  35. Edwin H. Watkeys III                                   edw@distant.uucp
  36. Distant Software                               dsinc!jabber!distant!edw
  37. +1 215 387 7971                                     edw%distant@bts.com
  38.