new
new [ -stylesheetname] [ -newwindow | -ok] [ -typedoctype] [ -sample] [docname]
This command replaces the document in the Edit pane with a newly created document.
-stylesheetname specifies the stylesheet to be used in place of the default stylesheet for the Edit view. name is the path and file name of a stylesheet file. name can also be the base name of the stylesheet file (the file name without the path). If just the base name is supplied, Arbortext Editor looks for the file in the document directory, and then the document type directory.
-newwindow specifies that a new window be created to display the new document. If -newwindow is not specified, the new document replaces the current document. -nw is a synonym for -newwindow.
-ok moves you to the requested document without prompting you about unsaved changes to the current document or file (unsaved changes will be lost). This option is not applicable if -newwindow is given.
-type creates a new document of the specified document type. The type can be an initial substring from the list of document types listed in the New Document dialog box. If the name contains blanks, the name must be enclosed in quotes (for example “personal letter”). Any new document type installed as a template is also legal. This option can be combined with the -sample option. If -type is not specified, the New Document dialog box is opened.
-sample specifies that the new document is to contain sample markup.
docname specifies the path name to use when the document is saved. If omitted, the Save As dialog box will prompt for the name when saving.
Examples
new -sample book.sgm
new -type memo -nw salesmtg.sgm