beautypg.com

Apple AppleScript Finder Guide User Manual

Page 103

background image

C H A P T E R 2

Finder Objects

Object Class Definitions

91

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"}

Trash-Object

2

An object of class Trash-Object is the Trash for a specific Finder application. The

Trash property of the Finder application is an object of this class.

PROPERTIES

A trash-object has all the properties defined for object class Container on

page 43: Completely Expanded, Container Window, Entire Contents,

Expandable, Expanded, Previous List View, Selection, and View.
Like any other container, a trash-object also has all the properties defined for

object class object class Item on page 73: 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.