Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ asdtool(1) — Macintosh Execution Environment 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

asdtool(1)  —  MAE Version 2

Release 1

NAME

asdtool - Convert between AppleSingle/AppleDouble formats

SYNOPSIS

asdtool [−tw] files

DESCRIPTION

asdtool converts AppleSingle file format to AppleDouble and vice versa, optionally translating carriage returns to linefeeds and handling wide chars.  If neither an AppleSingle or AppleDouble file is named on the command line, the file will be converted to AppleDouble. 
 
File format of source files is deduced by asdtool, and the resultant converted files will have a postfix (either _sgl for AppleSingle, or _dbl for AppleDouble). 
 
Both file types, as well as Unix text files can be used on the same command line.

OPTIONS

−t

Specifies translation of carriage returns to linefeeds. 

−w

Specifies source files use wide chars (such as Kanji). 

FORMATS

An AppleSingle file is a self-contained Macintosh file.  An AppleDouble file is actually two files: the original file, and its resource file.  The resource file begins with a ’%’. 
 
When transferring AppleDouble files, be sure to copy the resource file as well.

EXAMPLES

asdtool is useful for UNIX programs (like vi) that don’t expect a Macintosh file header.  Converting an AppleSingle file foo to AppleDouble will allow the UNIX program to read it. 
 
Also, if the original file uses carriage returns instead of linefeeds, using the -t switch will allow viewing the resultant file in vi.

BUGS

None known. 

COPYRIGHT

Copyright (c) 1995, Apple Computer Inc. 

  —  October 12, 1995

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026