CHAPTER 3
Finder Commands
106 Command Definitions
However, if the window for a folder is open, you can use a script like this to
clean up the contents of the window:
tell application "Finder"
clean up contents of folder "My Folder" of window of startup disk
end tell
Close 3
A Close command is a request to close one or more windows. The Finder
version of the Close command behaves like the standard version described in
the AppleScript Language Guide, except that the Finder ignores the saving and
saving in parameters recognized by AppleScript and most other
applications.
SYNTAX
close referenceToObject
PARAMETERS
referenceToObject
A reference to the object to close or a list of references. The
reference can be to either a window or a container to which
a window belongs.
Class: Reference
RESULT
Reference to the closed window or a list of references.
Comments to this Manuals