Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Finder Guide /
Chapter 3 - Finder Commands / Command Definitions


Empty

An Empty command is a request to empty the trash. It has the same effect as choosing Empty Trash from the Special menu, except that it never warns the user before emptying--even if the Warn Before Emptying property of the Trash is set to true.

SYNTAX
empty [ referenceToTrash ]
PARAMETERS
referenceToTrash
A reference to a trash container.
Class: Reference
Default value: Reference to the local computer's Trash
RESULT
A reference to the trash container that was emptied.

EXAMPLE
tell application "Finder" to empty the trash 

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996