Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Finder Guide /
Chapter 2 - Finder Objects / Object Class Definitions


Suitcase

An object of class Suitcase can be either an accessory suitcase or a font suitcase.

PROPERTIES
A suitcase has all the properties defined for object class Container on page 42: Completely Expanded, Container Window, Entire Contents, Expandable, Expanded, Previous List View, Selection, and View.

Like any other container, a suitcase also has all the properties defined for object class Item on page 72: Bounds, Comment, Container, Content Space, Creation Date, Disk, Folder, Icon, ID, Information Window, Kind, Label Index, Modification Date, Name, Physical Size, Position, Selected, Size, and Window.

ELEMENT CLASSES
The only elements that a suitcase can contain are objects of class Item (see page 72 for the definition of Item). Items can be identified within a suitcase by name or by number.

COMMANDS HANDLED
Clean Up, Close, Copy, Count, Data Size, Delete, Duplicate, Exists, Get, Move, Open, Put Away, Reveal, Select, Sort, Update

DEFAULT VALUE CLASS RETURNED
Reference to a suitcase or, if you use the plural form suitcases, a list
of references.

EXAMPLE
This script returns a list of references to the suitcases at the top level of the startup disk:

tell application "Finder"
    suitcases of startup disk
end tell

--result: {suitcase "DAs" of startup disk of application 
"Finder", suitcase "Extra Fonts" of startup disk of 
application "Finder"} 

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996