beautypg.com

Apple AppleScript Finder Guide User Manual

Page 87

background image

C H A P T E R 2

Finder Objects

Object Class Definitions

75

size

The logical size of the item on disk, in bytes.

Class:

Integer

Modifiable:

No

window

A reference to the window that opens when the item is opened.

Class:

Reference

Modifiable:

No

ELEMENT CLASSES

None

COMMANDS HANDLED

Clean Up, Close, Copy, Count, Data Size, Delete, Duplicate, Exists, Get, Move,

Open, Put Away, Reveal, Select, Sort, Update

DEFAULT VALUE CLASS RETURNED

A reference to a file, folder, disk, the Trash, or the desktop or, if you use the

plural form items, a list of references.

EXAMPLES

The script that follows moves a group of items that start with an at (@) symbol

back and forth between the Apple Menu Items folder and a folder at the top

level of the startup disk called Apple Menu Extras.
To work correctly, this script must be stored as a script application at the top

level of the startup disk; the startup disk must also contain a folder called

Apple Menu Extras to store the items you want to move in and out of the

Apple Menu Items folder; and the names of the items in the Apple Menu Items

folder must all begin with an @ symbol. It is also important, as with any script,

to have some free memory available in addition to the memory used by any

currently running processes—preferably several hundred kilobytes.