Adobe FrameMaker 8

Opening, saving, and printing files with fmbatch

You can open any file with fmbatch that you can open with the FrameMaker File > Open command. You must use fmbatch to open a file before you can perform any other fmbatch operations on it.

You can save an open document or a book file with the current filename and format, or you can save it with a different name or format.

Note: When you save a document with fmbatch, it does not warn you about overwriting an existing file. The overwritten file is given a .backup suffix.

You can print a file you opened with fmbatch using the file's print settings or using the print settings from a different FrameMaker document, which lets you, for example, specify one printer name for a group of documents.

If the open file you're printing is a book file, fmbatch prints the entire book. If you print a book file to a PostScript print file, fmbatch creates a single large PostScript file.

You can also use fmprint to print files. For details, see Printing with fmprint (UNIX).

To open a file with fmbatch:

In a batch file or at the fmbatch prompt, do one of the following:

To open a FrameMaker document, enter Open filename. For example, enter Open

To open a text file, enter OpenTextFile type filename. The type option is one of the following.

Type option

File type


A line-oriented text file (Each line is treated as a separate paragraph.)


A paragraph-oriented text file (Consecutive nonempty lines are considered part of a paragraph, and an empty line signifies a paragraph break.)

For example, to open MyData.txt, a line-oriented text file, enter OpenTextFile a MyData.txt

To save an open file with fmbatch:

In a batch file or at the fmbatch prompt, do one of the following:

To save a file with its current name and format, enter Save filename (for example, enter Save

To save a file with a different name or format, enter SaveAs format oldname newname. The format option is one of the following.

Format option



Saves in Document format

l (lowercase L)

Saves in View Only format


Saves in line-oriented text format


Saves in paragraph-oriented text format


Saves in MIF

- (hyphen)

Saves in the current format

Specify only one format option. If you don't specify a format option, fmbatch saves the file in its current format. You can't use the l, a, or t option when saving a book file. If a document is in View Only format, you can't save it in Document format with the SaveAs command.

For example, to save the FrameMaker document as a MIF file, enter SaveAs m MyReport.mif

To print an open file with fmbatch:

In a batch file or at the fmbatch prompt, do one of the following:

To print a file with its own print settings, enter Print filename

To print a file with the print settings of another FrameMaker document, enter Print filename settings_file. (To set up or change the print settings in the settings_file document, open a document--even a new, blank document--choose File > Print, specify the settings you want, and click Save Settings Only. Then save the document.)

For example, to print with the print settings from the document, enter Print