beautypg.com

Apple AppleScript Finder Guide User Manual

Page 147

background image

C H A P T E R 3

Finder Commands

Command Definitions

135

PARAMETERS

None

RESULT

None

EXAMPLE

tell application "Finder" to sleep

Sort

3

The Sort command is a request for a sorted list of references.

SYNTAX

sort

referenceList by propertyLabel

PARAMETERS

referenceList

A list of references to the objects that are to be sorted. This may

take the form of a single reference to several objects in the same

container or a list of references to objects in several containers.

Class:

Reference or list of references

propertyLabel

The name of the property by which the objects are to be sorted.

Class:

Class identifier

RESULT

A list of references sorted according to the property specified in the

propertyLabel

parameter.