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

MPW Command Reference


Redo

Built-in

SYNTAX

Redo [window]

DESCRIPTION

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

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

Note
Remember that Redo is maintained on a window-by-window basis. Therefore, using this command reverses the last Undo 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

Redo can return the following status codes:

0

no errors

1

syntax error

2

any other error

PARAMETERS

window

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

OPTIONS

None

EXAMPLES

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

Redo

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

Redo "{Worksheet}"

SEE ALSO

Copy

Cut

Paste

Undo

 
 


Last Updated July 2000