MI(1) Commands and Applications MI(1) NAME mi - Mass import of data into a resource fork SYNOPSIS mi [-v -t type -i id -a attr] resource_file data_file1 ... DESCRIPTION mi is useful for importing large amounts of data into a program's resource fork without the time consuming process of launching a graphical resource editor. -v Verbose mode. mi will print information on each resource as it is imported. -t type Specify resource type. type must be a decimal value. -i id Specify resource starting id. id must be a decimal value. -a attr Specify resource attr. attr must be a decimal value. A value of 16 specifies noCrossBank. Look in /usr/include/resources.h for more details. resource_file The first file specified will be the destination for the new resources. data_file1... As many as 255 datafiles will be imported with sequential resource ids. mi scans from id 1 looking for unused resource ids. When one is found, the imported data will be given that id. Also, mi sets the resource name to the filename of the datafile. All strings within mi are set to use argv[0] as the program name, so you can rename mi to whatever you like. ERRORS An error on accessing the destination file will cause an abort. An error on accessing a datafile will cause mi to skip that file. mi returns GS/OS errors in hexadecimal format. Improper command formats generate a usage message. BUGS None known. NOTES GNO/ME is severely lacking in resource utilities. This program was written for the dungeonQuest project. Should a need arise for other such resource tools, I will write them. AUTHOR This program is Copyright 1994 by Aurora Software Research. It may be freely distributed provided this manpage accompanies it. mi uses routines from the ORCA Libraries, Copyright by ByteWorks, Inc. Send questions to: daver@rush.cc.edu