home *** CD-ROM | disk | FTP | other *** search
- SHOWMACB 1.0 -- Read/write MacBinary headers
-
- SYNTAX
- showmacb [-z|-a] input file [output file]
- -z = remove first MacBinary header
- -a = add dummy MacBinary header
-
- Show all MacBinary headers:
- showmacb xyz.sit
-
- If there are two headers then to remove the first one:
- showmacb -z xyz.sit new.sit
-
- If there is no header then to add one:
- showmacb -a xyz.sit new.sit
-
-
- DESCRIPTION
- Apple Macintosh terminal programs usually prepend a 128 byte header to
- binary files uploaded to other systems. This header is called a
- MacBinary header. It contains directory information such as date/time
- stamp and full file name of the file. Unfortunately, Mac files on BBS
- systems sometimes have none, one, or more than one MacBinary header.
- Non-Mac programs that use Mac files sometimes refuse to process a file
- because of the incorrect number of MacBinary headers.
-
- Example 1:
- GIF picture files uploaded from Macs have MacBinary headers but most
- non-Mac GIF viewers refuse to process such files because they cannot
- find the GIF header.
-
- Example 2:
- The UNSIT program refuses to process StuffIt files unless it has
- exactly one MacBinary header.
-
- SHOWMACB reads a file and displays all MacBinary headers it can find.
- There are two options to manipulate MacBinary headers.
-
- The -z option will copy the input file to the output file except for
- the first 128 bytes of the input file. MacBinary headers are exactly
- 128 bytes long so the output file should be a copy of the input file
- without the first MacBinary header.
-
- The -a option will write a dummy MacBinary header to the output file
- then copy the input file to output file. This will add a MacBinary
- header to a file.
-
-
- LEGAL STUFF
- Copyright 1988 Brian K. Uechi. All rights reserved.
-
- DISCLAIMER: No warranty of any kind is made with regard to this
- program. The Author shall be not liable for errors contained herein
- or for incidental or consequential damages in connection with
- furnishing, performance, or use of this material.
-
- This program may be freely distributed as long as it is not sold or
- included as part of a commercial product.
-
- Brian K. Uechi
- 2616-A Kalihi St.
- Honolulu, HI 96819
- GEnie: B.UECHI
- CompuServe: 72330,155
-