newchapter
newdocument
newmasterpage
newstyletag
newvariable
nudge
nudgepoint
Creates a new chapter in a document or chapter.
newchapter <name number> [CHAPTER name | WINDOW name]
name/s The new chapter name.
number/i The new chapter number.
CHAPTER/s The document/chapter name. Default=current.
WINDOW/s The window name. Default=current.
Results:
Returns the new chapter's name and path to RESULT. If the chapter name specified for the new chapter is already used by an existing chapter, PageStream will append .# to it, so you may wish to check the result.
Examples:
newchapter 'Part Three' 7
Creates a new document.
newdocument <name>
name/s The new document's name.
Results:
Returns the new document's name to RESULT. If the document name specified for the new document is already used by an open document, PageStream will append .# to it, so you may wish to check the result.
Notes:
This command is not equivalent to the menu's New command. It does not create a default master page or open a document window. To create a master page, follow this command with a newmasterpage command, and then open its window with the openwindow command.
Examples:
newdocument 'Report.document'
Creates a new master page in a document or chapter.
newmasterpage <name width height> [orientation] [sides] [spread] [CHAPTER name | WINDOW name]
name/s The new master page name.
width/d The master page width.
height/d The master page height.
orientation/k The orientation: PORTRAIT (default) | LANDSCAPE.
sides/k The number of sides: SINGLE (default) | DOUBLE.
spread/k The facing pages setting: FACING | INDIVIDUAL.
CHAPTER/s The document/chapter name.
Default=current.
WINDOW/s The window name. Default=current.
Notes:
This command is not equivalent to the menu's Master Page Setup command. To set all the options in that dialog box you must also use the setmarginguides and setcolumnguides commands. The parameters set in this command can be changed later with the setdimensions command.
Examples:
newmasterpage 'Columnar' 8.5 11 landscape double
Creates a new character, paragraph, object or color style tag.
newstyletag <name> <type> [DOCUMENT name | WINDOW name | CHAPTER name]
name/s The name of the new style tag.
type/k The type of style tag.
Options: CHARACTER | PARAGRAPH | OBJECT | COLOR | FPATTERN | LPATTERN.
DOCUMENT/s The document name. Default=current.
WINDOW/s The window name. Default=current.
CHAPTER/s The document/chapter name.
Default=current.
Notes:
Named colors are actually a type of style tag, thus their inclusion in this command.
To add attributes to a style tag, set the attribute and append the styletag keyword and style name. See each attribute command for more information. Note that while you can theoretically add paragraph attributes to a character style tag through a script, this is not recommended, is not supported through the interface, and could cause problems in future versions of PageStream. Use each type of style tag for its intended purpose.
Style tag names must be unique; you cannot create a character style and a color style with the same name.
Examples:
newstyletag 'Body Text' paragraph newstyletag 'Computer Style' character newstyletag 'Basic Objects' object
Creates a new user variable.
newvariable <name value> [DOCUMENT name | WINDOW name | CHAPTER name]
name/s The name of the new variable.
value/s The variable string.
DOCUMENT/s The document name. Default=current.
WINDOW/s The window name. Default=current.
CHAPTER/s The document/chapter name.
Default=current.
Examples:
newvariable author "Bill Watson"
Nudge object(s) in any direction by the current nudge value.
nudge <[horz] [vert]> [TAP] [what] [DOCUMENT name | WINDOW name | OBJECTID number]
horz/k The horizontal nudge direction.
Options: LEFT | RIGHT.
vert/k The vertical nudge direction.
Options: UP | DOWN.
TAP/k Nudges 1/10th of the normal amount.
what/k Specifies what to nudge.
Options: ALL Nudges the entire object.
Default.
FRAMEONLY Nudges the frame only.
CONTENTONLY Nudges the contents only.
DOCUMENT/s The document name. Default=current.
WINDOW/s The window name. Default=current.
OBJECTID/i The number of the object to manipulate.
Examples:
nudge left up document 'project.doc' nudge down contentonly
Nudges selected path point(s) in any direction by the current nudge value.
nudgepoint <[horz] [vert]> [TAP] [POINTINDEX point] [DOCUMENT name | WINDOW name | OBJECTID number]
horz/k The horizontal nudge direction.
Options: LEFT | RIGHT.
vert/k The vertical nudge direction.
Options: UP | DOWN.
TAP/k Nudges 1/10th of the normal amount.
POINTINDEX/i The number of the point to nudge.
Default=selected point(s).
DOCUMENT/s The document name. Default=current.
WINDOW/s The window name. Default=current.
OBJECTID/i The number of the object to manipulate.
Notes:
Pointindex identification numbers are numbered from 0 starting with the first moveto in a path.
Examples:
nudgepoint left up nudgepoint right tap