beautypg.com

Apple AppleScript Finder Guide User Manual

Page 119

background image

C H A P T E R 3

Finder Commands

Command Definitions

107

EXAMPLES

This statement closes all Finder windows:

tell application "Finder" to close windows

This statement closes all Finder windows whose name includes the word

“messages”:

tell application "Finder"

close windows whose name contains "messages"

end

You can also specify a container to which a window belongs as the parameter

of the Close command:

tell application "Finder"

close startup disk

end tell

Computer

3

The Computer command is a request for information about the local computer’s

operating environment.
This command is intended for use by programmers only. To use it, you should

be familiar with the Gestalt function as described in Inside Macintosh:

Operating System Utilities.

SYNTAX

computer

gestaltSelector [ has bitsToTest ]