This following commands always operate on the active document:
New [templatePath]
Opens a new document. If a template path is provided the given document will be used as a template. If no template path is provided the Nisus New File is used. If the template file cannot be read, or another error occurs, the error will be displayed to the user.
Save
Saves the document to its current location, overwriting the last save. If the document has never been saved then the user is asked where to save the document. If an error occurs it will be displayed to the user. This command returns @true if the document was saved, otherwise @false.
Save As [path]
Saves the document to the specified file path. If a file already exists at the specified location it is overwritten without interrupting the user. If the path is not provided, then the user will be asked where to save. If an error occurs it will be displayed to the user. This command returns @true if the document was saved, otherwise @false.
Save To [path]
Saves a copy of the document to the given file path. If a file already exists at the specified location it is overwritten without interrupting the user. If the path is not provided, then the user will be asked where to save. If an error occurs it will be displayed to the user. This command returns @true if the document was saved, otherwise @false.
Save As PDF [path] v1.1
Saves a copy of the file as a PDF to the given file path. If a file already exists at the specified location it is overwritten without interrupting the user. If no path is provided, the user is asked where to save. If an error occurs it will be displayed to the user. This command returns @true if the document was saved, otherwise @false.
Open path
Opens the file at the given path in Nisus Writer. If the file cannot be read, or another error occurs, the error is displayed to the user. This command returns @true if the file was opened, otherwise @false.
Open URL url
Opens the URL in the most appropriate application. Eg: “http://www.nisus.com” would open in the default web browser (eg: Safari). This command returns @true if the URL was opened, otherwise @false.
Set Navigator Shown isVisible v1.0.2
Set Navigator Width widthInPoints v3.2
Set Comments Shown isVisible v1.3
Set Comments Pane Width widthInPoints v3.2
Set Tracked Changes Shown isVisible v3.2
Set Tracked Changes Pane Width widthInPoints v3.2
Set Toolbar Shown isVisible v1.0.2
Set Rulers Shown isVisible v1.0.2
Set Page Guides Shown isVisible v1.0.2
Set Invisibles Shown isVisible v1.0.2
Set Find Shown isVisible v1.0.2
All the above commands simply show or hide a specific document tool or aspect. For example, to show the rulers:
Set Rulers Shown @true
Set Navigator Mode ‘TOC’ v1.0.2
Set Navigator Mode ‘Bookmarks’ v1.0.2
Set Navigator Mode ‘Bookmarks by Location’ v1.0.2
Set Navigator Mode ‘Bookmarks by Alpha’ v1.0.2
Controls what the navigator displays. Bookmarks can be displayed sorted alphabetically or by location.
Set Zoom percent v1.0.2
Changes how much the document is zoomed in. The percentage should be expressed as an integer between 2 and 80000, where 100 means actual size (eg: 100%).
Previous Chapter Document Object |
<< index >> |
Next Chapter Document Selections |