Apple AppleScript Finder Guide User Manual
Page 123

C H A P T E R 3
Finder Commands
Command Definitions
111
referenceToContainer
A reference to the container whose elements are to be counted.
If you do not specify this parameter, the Finder counts the
elements in the default target of the Tell statement (for example,
the Finder application).
Class:
Reference
Default value:
Reference to default target of Tell statement
RESULT
Integer.
EXAMPLES
In the following example, every item of window "My World" returns a
list of items. The Finder counts the items in the list.
tell application "Finder"
count every item of window "My World"
end tell
--result: 12
The following statement is equivalent to the previous example:
tell application "Finder"
count items of window "My World"
end tell
Data Size
3
A Data Size command is a request for the size, in bytes, of the data of one or
more objects. The value returned is the size of the data (a value) that would
result from a Get command on the same object or objects. This command has