Apple AppleScript Finder Guide User Manual
Page 105

C H A P T E R 2
Finder Objects
Object Class Definitions
93
EXAMPLE
To refer to a trash-object, you must use the Trash property of the desktop:
tell application "Finder"
clean up trash
end tell
Note that it’s not necessary to refer to the trash of desktop; the Finder
interprets trash as the desktop’s Trash property.
User
2
An object of class User is a user file in the Users & Groups control panel
window. The Finder can’t recognize or create a user unless the Users & Groups
control panel window is open.
PROPERTIES
bounds
The coordinates of the rectangle that bounds the content region
of the user’s icon.
Class:
List of four integers (Bounding Rectangle data type).
The first two integers specify the coordinates of the upper-left
corner of the user’s icon, and the last two integers specify the
coordinates of the lower-right corner of the icon.
Modifiable:
Yes
icon
A bitmap of the user’s icon.
Class:
Icon family (data type defined by Finder)
Modifiable:
Yes
label index
The number of the label currently selected for the user in the
Label menu (None = 0).
Class:
Integer
Modifiable:
Yes
name
The user’s name.
Class:
String
Modifiable:
Yes