herbw@midas.STS.TEK.COM (Herb Weiner) (08/22/89)
What is the correct way for an MPW tool to set the file type ("TEXT") and creator ("MPS ") for an output file it is creating? Since the output file may actually be directed into an existing window, I am not sure that whether it is correct to examine the arguments and do something conditionally, or whether I can unconditionally use the Mac toolbox to set the file finder info. If I need to use the Mac toolbox, I also need to determine the volume reference number, and I'm not sure the correct way to do that. Obviously, there is some way to do this, since the Apple's tools seem to do it. Code fragments in C would be preferred, but Pascal or Assembler are also acceptable. Herb Weiner (herbw@midas.STS.TEK.COM)