beautypg.com

Apple AppleScript Finder Guide User Manual

Page 146

background image

C H A P T E R 3

Finder Commands

134

Command Definitions

Shut Down

3

The Shut Down command is a request to shut down the computer. It is

equivalent to choosing Shut Down from the Special menu.

SYNTAX

shut down

PARAMETERS

None

RESULT

None

EXAMPLE

tell application "Finder" to shut down

Sleep

3

The Sleep command is a request to put a PowerBook to sleep. It is equivalent to

choosing Sleep from the Special menu. Before putting the computer to sleep,

the Finder displays a dialog box asking the user to confirm the decision.

SYNTAX

sleep