settc(1) settc(1)NAME settc - set the type and creator of a Macintosh resource file SYNOPSIS settc type creator [file]... DESCRIPTION settc sets the file type and creator of an AppleSingle file or the header file of an AppleDouble pair. See Inside Ma- cintosh, Volume III, for a description of file types and creators. The type and creator parameters are the actual strings used by a Macintosh application to identify itself and the files it creates. If the type or creator code includes spaces, tabs, or metacharacters, enclose the code in quotation marks. The file parameter represents the name of the file to be changed. If you are working with a pair of AppleDouble files, specify the name of the data file only, not the name of the header file. settc automatically looks for the asso- ciated header file, which should have the same name as the data file, but with a percent sign (%) prefixed. If settc cannot find the header file, it creates one. Most Macintosh applications open a document file only if they recognize the type and creator. In the Macintosh OS, a file's type and creator are stored in the directory. In A/UX, the type and creator are stored as an entry in either an AppleSingle file or the header file of an AppleDouble pair. When an A/UX Toolbox application creates a file using the normal File Manager routines, it automatically creates the an AppleSingle file with the appropriate type and crea- tor (see the description of the File Manager in Chapter 4 of Inside Macintosh). settc is useful in two situations. 1. When a file's type and creator are lost during a file transfer from the Macintosh environment to A/UX. 2. When you want to use a data file that was created by the standard A/UX file system instead of the A/UX Tool- box File Manager. The usual symptom of an incorrect type is the file's failure to appear in the Open Standard File dialog box. April, 1990 1
settc(1) settc(1)EXAMPLES The command settc PNTG MPNT report house establishes the type of the data files report and house as PNTG and the creator as MPNT. FILES /mac/bin/settc SEE ALSO derez(1), rez(1). 2 April, 1990