beautypg.com

Apple AppleScript Finder Guide User Manual

Page 72

background image

C H A P T E R 2

Finder Objects

60

Object Class Definitions

EXAMPLE

The script that follows tests the Ejectable property of each item in a list of the

mounted disks and ejects every disk that’s ejectable.

tell application "Finder"

put away (every disk whose ejectable is true)

end tell

Document File

2

An object of class Document File is a document file on a disk.

PROPERTIES

A document file has all the properties defined for object class File on page 61:

Creator Type, File Type, Locked, Product Version, Stationery, and Version.
Like any other file, a document file also has all the properties defined for object

class Item on page 73: Bounds, Comment, Container, Content Space, Creation

Date, Disk, Folder, Icon, ID, Information Window, Kind, Label Index, Modifica-

tion Date, Name, Physical Size, Position, Selected, Size, and Window.

ELEMENT CLASSES

None

COMMANDS HANDLED

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

Print, Put Away, Reveal, Select, Sort, Update

DEFAULT VALUE CLASS RETURNED

Reference to a file or, if you use the plural form document files, a list of

references.