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

MPW Command Reference


Undo

Built-in

SYNTAX

Undo [window]

DESCRIPTION

The Undo command reverses the last editing operation in the specified window. This is equivalent to selecting Undo from the Edit menu. If the Shell variable {AllowMultipleUndo} is set to 1, repeated applications of Undo act to consecutively reverse all previous editing events.

This built-in command was added in the v. 3.4.2 MPW Shell.

Note
Remember that Undo is maintained on a window-by-window basis. Therefore, using this command undoes the last edit operation that was performed in the specified window, which may or may not be the last operation actually performed. •

INPUT

None

OUTPUT

None

ALIAS RESOLUTION

This command resolves Finder aliases that are part of a partial or complete pathname substituted for the window name. The resolved pathname must specify the name of an open window. Note that using a shell variable to designate a window is usually faster than requiring MPW to resolve a Finder alias.

STATUS

Undo may return the following status codes:

0

no errors

1

syntax error (error in parameter)

2

any other error

PARAMETERS

window

Specifies the window in which the last editing operation is to be reversed. The default window is the target window.

OPTIONS

None

EXAMPLES

The following command line reverses the last edit operation in the target window:

Undo

The following command line reverses the last edit operation in the Worksheet window:

Undo "{Worksheet}"

SEE ALSO

Copy

Cut

Paste

Redo

 
 


Last Updated July 2000