Apple AppleScript Finder Guide User Manual Page 124

  • Download
  • Add to my manuals
  • Print
  • Page
    / 168
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 123
CHAPTER 3
Finder Commands
112 Command Denitions
little meaning for the Finder, because the result of a Get command for most
Finder objects is a reference. In the case of icons, Data Size returns the data size
of the icon family.
SYNTAX
data size of referenceToObject [ as className ]
PARAMETERS
referenceToObject
A reference to the object or objects whose data size is to
be returned.
Class: Reference
className The class of data for which to determine the size.
Class: Reference
Default value: The default value class for the object
RESULT
An integer that indicates the size, in bytes, of the data that would be returned
by a Get command on the specified object or objects. For most Finder objects,
this command returns the size of the reference, not the size of the object
referred to.
If the referenceToObject parameter specifies a single object only (such as icon
of file "My File" of startup disk or window 1), the result is a single
integer that specifies the data size in bytes. If the specified object doesn’t exist,
the Finder returns an error.
If the referenceToObject parameter refers to more than one object (such as
items of startup disk), the result is a list of integers. The first item
in the list is the data size of the first item, the second item is the data size of
the second item, and so on. If the specified objects don’t exist, the result is
an empty list.
Page view 123
1 ... 123 124 125 ... 168

Comments to this Manuals

No comments