beautypg.com

Apple AppleScript Finder Guide User Manual

Page 133

background image

C H A P T E R 3

Finder Commands

Command Definitions

121

NOTES

The word get in the Get command is optional. For example, these statements

are equivalent:

name of startup disk
get name of startup disk

Make

3

The standard application command Make is a request to create a new object

that can include values for properties of the object. The Finder version of the

Make command is similar to the version described in the AppleScript Language

Guide

, except that the Finder’s Make command can’t set the value of the new

object’s data unless the new object is an alias file.

SYNTAX

make [ new ]

className [ at referenceToContainer ]

¬

[ with properties

¬

{

propertyLabel:propertyValue [, propertyLabel:propertyValue ]...}]¬

[ ( to | with data )

referenceToObject ]

PARAMETERS

className

The class of the object to be created. (Note that if you are

creating a new file, you cannot use the optional term new

before className.)

Class:

Class identifier

referenceToContainer

The container in which to create the new object.

Class:

Reference

Default value:

The Finder’s current insertion location

propertyLabel

The name of a property whose value is to be set.

Class:

String