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