beautypg.com

Apple AppleScript Finder Guide User Manual

Page 141

background image

C H A P T E R 3

Finder Commands

Command Definitions

129

Quit

3

A Quit command is a request to quit the Finder application. The Finder’s Quit

command is similar to the one described in the AppleScript Language Guide,

except that the Finder ignores the parameters recognized by most other applica-

tions. You can’t tell other processes to quit from within a Tell statement

addressed to the Finder.
When you quit the Finder, any icons on the desktop and any Finder windows

that are currently visible disappear.

W A R N I N G

If you are using version 1.1 of AppleScript, you can launch

the Finder again only by quitting all running processes or

by restarting the computer.

SYNTAX

quit

PARAMETERS

None

RESULT

None

EXAMPLE

This statement quits the Finder:

tell application "Finder" to quit

If you are using version 1.1 of AppleScript, you can relaunch the Finder only by

quitting all running applications or by restarting the computer. Other versions