Apple AppleScript Finder Guide User Manual
Page 136

C H A P T E R 3
Finder Commands
124
Command Definitions
Move
3
A Move command is a request to move an object or objects. The Finder version
of the Move command is similar to the version described in the AppleScript
Language Guide
, except that the Finder’s Move command allows you to specify
whether or not to replace items in the destination container.
SYNTAX
move
referenceToObject to referenceToContainer
¬
[ replacing ( conflicts | existing items ) ]
PARAMETERS
referenceToObject
A reference to the object to move or a list of references.
Class:
Reference or list of references
referenceToContainer
A reference to the location to which to move the object
(see “Notes”).
Class:
Reference
RESULT
A reference to the object that was moved or a list of references.
EXAMPLE
This script moves a file into a folder, replacing any files of the same name that
exist in that folder:
tell application "Finder"
move file "My File" of startup disk ¬
to folder "My Folder" of startup disk ¬
replacing conflicts
end tell