Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


New

Built-in

SYNTAX

New [window1] [window2]… [-h]

DESCRIPTION

The New command opens one or more windows, making the last one specified the active window. If the MPW Shell variable {NewWindowRect} is defined, the windows are opened to that size and location.

Notice that "New" and "Open -n" both open windows. The difference is that "New" returns an error if the window already exists, while "Open -n" either opens an existing window or creates a new one.

INPUT

None

OUTPUT

None

STATUS

New can return the following status codes:

0

no errors

1

syntax error (error in parameters)

2

unable to complete operation; file with that name already exists

3

system error

PARAMETERS

window1 [window2]…

Specifies one or more window names. If you do not specify any names, the MPW Shell generates a unique name for each new window, starting with Untitled, Untitled-0, and then using the form Untitled-n, where n is an integer.

OPTIONS

-h

Opens the window as hidden.

EXAMPLES

The following command opens a new window called Untitled (presuming no other windows have been opened in this manner):

New

Executing this example creates three windows called Test.a, Test.p, and Test.c :

New Test.a Test.p Test.c

SEE ALSO

Open

 
 


Last Updated July 2000