FSpCreateResFile
FSpCreateResFile Create resource file using FSSpec
#include <Resources.h> Resource Manager
void FSpCreateResFile(spec, creator,fileType, scriptTag);
FSSpec *spec ; filename to be opened
OSType creator ; file's creator
OSType fileType ; type of file
ScriptCode scriptTag ; script code of the script system local to the file
The FSpCreateResFile procedure opens the file named in the spec
parameter. The creator parameter contains the signature of the application
that created the file, and the fileType parameter indicates what type of file it
is. The value of the scriptTag parameter should be the script code of the script
system in which the Finder and the standard file dialog boxes display the name
of the file. If you specify NIL, the FSpCreateResFile function defaults to the
Roman script system. If you use Standard File Package routines, note that
the StandardPutFile procedure returns a standard file reply record that
contains information about the file. Call the ResError function to check for
errors.
The file system specification record is described in the File Manager
description. The StandardPutFile procedure and the standard file reply
record are described in the Standard File Package. The result codes for the
FSpCreateResFile procedure are the same as those for the
HCreateResFile function.
The FSpCreateResFile and HCreateResFile procedures are alternate
ways of creating resource files in HFS. These routines are based on the
CreateResFile procedure. HCreateResFile is a simple function designed
for HFS; FSpCreateResFile uses file system specification records.