Owner manual
CHAPTER 2
Finder Objects
Object Class Definitions 61
EXAMPLE
This script opens all the document files at the top level of a disk:
tell application "Finder"
open document files in window "My World"
end tell
Application files, desk accessories, suitcases, and other nondocument files
are ignored.
File 2
An object of class File can be any file on a disk, including document files,
application files, and so on.
PROPERTIES
A file 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, Modification Date, Name, Physical
Size, Position, Selected, Size, and Window.
Unlike other items, a file also has these properties:
creator type
A four-character code that indicates the creator type of the
application that created the file.
Class: String
Modifiable: Yes
file type A four-character code that indicates the type of the file.
Class: String
Modifiable: Yes
locked A Boolean value that indicates whether the file is locked (true)
or not (false).
Class: Boolean
Modifiable: Yes