Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!ut-sally!brian
From: brian@ut-sally.UUCP (Brian H. Powell)
Newsgroups: comp.sys.mac
Subject: Re: Macintalk Answers...
Message-ID: <6854@ut-sally.UUCP>
Date: Wed, 14-Jan-87 14:31:37 EST
Article-I.D.: ut-sally.6854
Posted: Wed Jan 14 14:31:37 1987
Date-Received: Thu, 15-Jan-87 00:49:43 EST
References: 
Organization: U. Texas CS Dept., Austin, Texas
Lines: 34
Summary: hard-coded paths

> When the applications open the
> resource file to get the driver out of it, they should use the path
>   :system folder:macintalk
> if under HFS to enable the application to open the file in the system folder.
> Problems arise if the application was written for MFS, since the path would
> be:
>   macintalk
>...
>     Justin Vallon     jv0l@andrew.cmu.edu

     Sorry this is behind the times, but I haven't caught up after Christmas.

     People should not get the idea that they should hard code the path
":System Folder:macintalk" into their programs.  The blessed folder isn't
necessarily called "System Folder".  If you really want to look for a file
in the blessed folder, see tech note 67, "Finding the 'Blessed Folder'".
     Seems to me, though, that you can just look for the file "Macintalk".
(i.e., refnum := OpenResFile('MacinTalk');)  I haven't tried it, though.
IM says it calls the File Manager, which should certainly be able to handle
HFS and the PMSP.  This should work under both MFS and HFS.
     If it fails under HFS, you can always try to use the new OpenRFPerm
function.  If that doesn't work, then I'd resort to the method of hunting
for the blessed folder.

Brian H. Powell
		UUCP:	{ihnp4,seismo,ctvax}!ut-sally!brian
		ARPA:	brian@sally.UTEXAS.EDU

   _Work_					 _Not Work_
  Department of Computer Sciences		P.O. Box 5899
  Taylor Hall 2.124				Austin, TX 78763-5899
  The University of Texas at Austin		(512) 346-0835
  Austin, TX 78712-1188
  (512) 471-9536