Mac Developer Library Developer
Search

 

This manual page is for Mac OS X version 10.5

Choose a version: 

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.




APPLESINGLE(1)            BSD General Commands Manual           APPLESINGLE(1)

NAME
     applesingle, binhex, macbinary -- encode and decode files

SYNOPSIS
     <tool> probe file ...
     <tool> [decode] [-c] [-fv] [-C dir] [-o outfile] [file ...]
     <tool> -h | -V

     applesingle encode [-cfv] [-S suf] [-C dir] [-o outfile] file ...
     binhex encode [-R] [-cfv] [-S suf] [-C dir] [-o outfile] file ...
     macbinary encode [-t 1-3] [-cfv] [-S suf] [-C dir] [-o outfile] file ...

DESCRIPTION
     applesingle, binhex, macbinary are implemented as a single tool with multiple names.  All invocations
     support the three verbs encode, decode, and probe.

     If multiple files are passed to probe, the exit status will be non-zero only if all files contain data
     in the specified encoding.

OPTIONS
     -f, --force
              perform the operation even if the output file already exists

     -h, --help
              display version and usage, then quit

     -v, --verbose
              be verbose

     -V, --version
              display version, then quit

     -c, --pipe, --from-stdin, --to-stdout
              For decode, read encoded data from the standand input.  For encode, write encoded data to the
              standard output.  Currently, "plain" data must be written to and from specified filenames (see
              also mount_fdesc(8)).

     -C, --directory dir
              create output files in dir

     -o, --rename name
              Use name for output, overriding any stored or default name.  For encode, the appropriate suf-fix suffix
              fix will be added to name.  -o implies only one file to be encoded or decoded.

     -S, --suffix .suf
              override the default suffix for the given encoding

     -R, --no-runlength-encoding
              don't use BinHex runlength compression when encoding

     -t, --type 1-3
              Specify MacBinary encoding type.  Type 1 is undesirable because it has neither a checksum nor
              a signature and is thus difficult to recognize.

DIAGNOSTICS
     In general, the tool returns a non-zero exit status if it fails.

Darwin                         14 November 2005                         Darwin

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Provide Feedback