beautypg.com

Apple AppleScript Finder Guide User Manual

Page 40

background image

C H A P T E R 2

Finder Objects

28

Object Class Definitions

ELEMENT CLASSES

The only elements that an accessory suitcase can contain are objects of class

Item (see page 73 for the definition of Item). Items can be identified within

an accessory suitcase by name or by number.

COMMANDS HANDLED

Clean Up, Copy, Count, Data Size, Delete, Duplicate, Exists, Get, Make, Move,

Open, Put Away, Reveal, Select, Set, Sort, Update

DEFAULT VALUE CLASS RETURNED

Reference to a suitcase or, if you use the plural form accessory suitcases,

a list of references.

EXAMPLE

This script returns a list of references to the accessory suitcases at the top level

of the startup disk:

tell application "Finder"

accessory suitcases of startup disk

end tell

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

Alias File

2

A object of class Alias File is an alias—that is, a file that represents another file

or volume. Icons for alias files have italicized names.

PROPERTIES

An alias file has all the properties defined for object class File on page 61:

Creator Type, File Type, Locked, Product Version, Stationery, and Version.