beautypg.com

Apple AppleScript Finder Guide User Manual

Page 139

background image

C H A P T E R 3

Finder Commands

Command Definitions

127

SYNTAX

print

referenceToObject

PARAMETER

referenceToObject

A reference to the object or objects to print—typically files

or containers—or a list of references.

Class:

Reference or list of references

RESULT

Reference to the printed object or a list of references.

EXAMPLE

tell application "Finder" to print file "Addresses" of startup disk

NOTES

The statement print items in referenceToContainer (where

referenceToContainer

is a reference to any container) won’t compile. Instead,

use the statement print every item of referenceToContainer.

Put Away

3

The Put Away command is a request to return specified objects on the desktop

or in the Trash to the folders or disks from which they were last moved. It may

also be used to unmount volumes. The Put Away command has the same effect

as selecting one or more icons on the desktop or in the Trash and choosing Put

Away from the File menu.

SYNTAX

put away

referenceToObject