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

MPW Command Reference


TileWindows

Built-in

SYNTAX

TileWindows [window… | -i] [-h | -v] [-r t,l,b,r]

DESCRIPTION

The TileWindows command sizes and moves the specified windows (except the Worksheet) so that they are all visible on the screen at once. Arranging your open windows like tiles and then zooming a selected window to full size makes dealing with many open windows much easier.

To tile all open MPW Shell windows, execute TileWindows without any parameters. In this case you have the option of including the Worksheet window (-i). You can also specify either horizontal (-h) or vertical tiling (-v).

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

TileWindows can return these status codes:

0

no errors

1

syntax error (error in parameters)

PARAMETERS

window

Specifies one or more windows to tile. Note that you cannot tile the Worksheet window when specifying a list of windows.

OPTIONS

-h

Tiles the specified windows in a horizontal fashion, allowing the full width of the screen to be used by each window. The result is a stack of short, wide windows.

-i

Includes the Worksheet window when tiling if you do not specify a list of windows.

-r t,l,b,r

Tiles windows within the specified rectangle. The rectangle is specified by the coordinates for top, left, bottom, and right. Coordinates must be separated by commas and, if any spaces are included, enclosed in quotation marks as in this example:

"10, 10, 300, 500"

The default rectangle is the entire screen, minus the menu bar. The coordinates (0,0) are located at the left side of the screen, directly below the menu bar.

-v

Tiles the specified windows in a vertical fashion, allowing you to see more lines per window. The result is a row of tall, thin windows.

EXAMPLES

The following command line tiles all open windows, including the Worksheet:

TileWindows -i

The next command line arranges the specified windows as two wide horizontal strips:

TileWindows hd:new:main.c hd:new:moo.c -h

For a different view, the following command line tiles the top two windows vertically:

TileWindows "{active}" "{target}" -v

SEE ALSO

HideWindows

MoveWindow

RotateWindows

ShowWindows

SizeWindow

StackWindows

ZoomWindow

 
 


Last Updated July 2000