beautypg.com

Apple AppleScript Finder Guide User Manual

Page 59

background image

C H A P T E R 2

Finder Objects

Object Class Definitions

47

Container Window

2

An object of class Container Window is a window for a container. For example,

the windows for a disk, a folder, or a suitcase are all container windows, while

a control panel window, the About This Macintosh window, and an informa-

tion window are not.

PROPERTIES

A container window has all the properties defined for object class Window on

page 95: Bounds, Closeable, Floating, Index, Modal, Position, Resizable, Titled,

Visible, Zoomable, and Zoomed.
Unlike other windows, a container window also has these properties:
container

A reference to the container to which the container

window belongs.

Class:

Reference

Modifiable:

No

disk

A reference to the disk on which the container to which the

window belongs is stored.

Class:

Reference

Modifiable:

No

folder

A reference to the folder to which the container window belongs

(available only for container windows of folders).

Class:

Reference

Modifiable:

No

item

A reference to the item to which the container window belongs.

Class:

Reference

Modifiable:

No

previous list view

An integer between 2 and 8 or one of the corresponding constants
name

, modification date, size, kind, comment, label

index

, or version. If the View property of the container

window is currently one of these list views, the value of this

property is the current list view. If the View property is small
icon

or icon, the value of this property is the last list view

selected. If no list view has been selected since the container

window was first opened, the value of this property is name.