CHAPTER 3
Finder Commands
Command Definitions 101
Result 3
Many (but not all) commands return results. The result of a command is the
value generated when the command is executed. The “Result” section of a
command definition tells whether a result is returned, and if so, lists its class.
For example, the result of a Move command is a reference to the object that
was moved.
Examples 3
Each command definition includes one or more short examples demonstrating
how to use the command. The example for the Move command definition
on page 124 is a script that moves a file into a folder.
Command Definitions 3
This section defines the commands that are understood by the Finder and
its objects.
The Finder supports most of the standard application commands described
in the AppleScript Language Guide. As is true for most scriptable applications,
the Finder’s definitions for some of these commands differ slightly from the
standard definitions. Table 3-1 summarizes the differences between the defined
behavior of the standard commands and the Finder behavior.
Table 3-1 Variations from standard behavior in Finder versions of standard
application commands
Command Finder version
Close Closes one or more containers. Behaves like the standard
version, except that the Finder needn’t save data when it
closes containers.
Copy Copies an object or objects. Behaves like the standard version,
except that the Finder version must include parameters.
continued
Comments to this Manuals