The file types listed in this appendix are named according to the conventions listed in Table E-1.
If the file type name includes:
it requires at least one argument
it requires exactly one argument
it requires exactly two arguments
it requires exactly three arguments
In all cases, if the expected number of arguments is not received, launch is run so that users can type in the desired options. For more information on the launch command, see the launch(1) reference page.
In this section, file types that are essentially the same, except for the number of arguments they require, are grouped together by the “base” file type name, meaning the file type name without the argument codes described in “Naming Conventions for Predefined File Types”.
For example, to find the file type named “ttyLaunchOut1argExecutable,” look under “ttyLaunchOutExecutable.” These two file types are identical, except that “ttyLaunchOut1argExecutable” requires exactly one argument.
“SpecialFile” is a predefined SUPERTYPE, not an actual file type. When you include the SPECIALFILE rule in your file type, you should also declare the “SpecialFile” SUPERTYPE. This allows applications to use isSuper(1) to test whether your file type is a SPECIALFILE.
The “Directory” type. Any custom file types you define for directories should include “Directory” as a SUPERTYPE. “Directory” is defined in /usr/lib/filetype/default/sgidefault.ftr.
“Ascii” is a pseudotype defined to support routeprint conversions. Actual ASCII text files have the type “AsciiTestFile”:
TYPE AsciiTextFile MATCH ascii;
“Ascii” is defined in /usr/lib/filetype/system/sgisystem.converts.ftr and “AsciiTextFile” is defined in /usr/lib/filetype/default/sgidefault.ftr. The Ascii icon is /usr/lib/filetype/default/iconlib/AsciiText.closed.fti superimposed over /usr/lib/filetype/iconlib/generic.doc.fti.
“SourceFile” is a pseudotype defined to support routeprint conversions. Actual source files have more specific types such as:
TYPE Makefile MATCH (glob("[mM]akefile") || glob("*.mk")) && ascii; TYPE HeaderFile MATCH glob("*.h") && ascii; TYPE CPlusPlusProgram MATCH glob("*.c++") && ascii;
MATCH glob("*.c") && ascii;
MATCH (glob("*.[pfrasly]") || glob("*.pl[i1]")) && ascii;
“SourceFile” is defined in /usr/lib/filetype/system/sgisystem.converts.ftr and the specific types shown above are defined in /usr/lib/filetype/system/sgisystem.ftr.
“ImageFile” is a top-level image pseudotype. You can create custom file types using ImageFile as a SUPERTYPE, or you can use a more specific file type such as:
TYPE SGIImage MATCH short(0) == 000732 || # normal SGI image short(0) == 0155001; #byte-swapped SGI image TYPE TIFFImage MATCH long(0) == 0x49492a00 || long(0) == 0x4d4d002a; # TIFF image TYPE FITImage MATCH string(0,2) == "IT"; # FIT image TYPE PCDimage MATCH string(2048,7) == "PCD_IPI"; # Kodak Photo CD image pack TYPE PCDOimage MATCH string(0,7) == "PCD_OPA"; # Kodak Photo CD overview pack TYPE GIF87Image MATCH string(0,6) == "GIF87a"; # GIF image (GIF87a format) TYPE GIF89Image MATCH string(0,6) == "GIF89a"; # GIF image (GIF89a format)
These and other file types are defined in /usr/lib/filetype/system/sgiimage.ftr.
This is the file type for shell scripts, defined in /usr/lib/filetype/default/sgidefault.ftr.
Simply runs the command. No output or terminal emulation windows are used. These file types are defined in /usr/lib/filetype/system/sgicmds.ftr.
Same as “GenericWindowedExecutable,” except that it runs launch to allow user to enter options prior to running the command. These file types are defined in /usr/lib/filetype/system/sgicmds.ftr.
Runs the command in a window that allows terminal I/O. The output window (which is where the terminal emulation is being done) exits immediately upon termination of the command. These file types are defined in /usr/lib/filetype/system/sgicmds.ftr.
Same as “ttyExecutable,” except that it runs launch to allow user to enter options before running the command. These file types are defined in /usr/lib/filetype/system/sgicmds.ftr.
Same as “ttyExecutable,” except that the output window persists until the user explicitly dismisses it. These file types are defined in /usr/lib/filetype/system/sgicmds.ftr.
TYPE ttyLaunchOutExecutable MATCH (tag == 0x00000700) || (tag == 0x00000710); TYPE ttyLaunchOut1-NargExecutable MATCH tag == 0x00000720; TYPE ttyLaunchOut1argExecutable MATCH tag == 0x00000701; TYPE ttyLaunchOut2argExecutable MATCH tag == 0x00000702; TYPE ttyLaunchOut3argExecutable MATCH tag == 0x00000703
Same as “ttyOutExecutable,” except that it runs launch to allow user to enter options before running the command. These file types are defined in /usr/lib/filetype/system/sgicmds.ftr.