Language Guide

CHAPTER 4
Commands
Command Denitions 89
APPLESCRIPT COMMAND SYNTAX
( copy | put ) expression ( to | into) variablePattern
APPLICATION COMMAND SYNTAX
( copy | put ) expression ( to | into) referencePattern
( copy | put ) [ referenceToObject ]
PARAMETERS
expression The expression whose value is to be assigned. If expression is a
reference or a list or record of references, AppleScript gets the
values of the objects specified by the references.
Class: Any class
variablePattern
The name of the variable in which to store the value, or a list of
variable patterns, or a record of variable patterns.
Class: Identifier, list, or record
referencePattern
A reference to the location to which to copy expression, a list of
reference patterns, or a record of reference patterns.
Class: Reference, list, or record
Default value: If you do not specify a new location, the object
specified in the direct parameter is copied and put on the
Clipboard.
referenceToObject
A reference to the object or objects to be copied, or a list of
reference patterns, or a record of reference patterns.
Class: Reference, list, or record
Default value: If this parameter is omitted, the object or objects in
the current selection are copied and put on the Clipboard.
RESULT
If the Copy command is used to create a variable, the result is the value that
was stored in the variable. If the command is used to copy an object, the result