beautypg.com

Apple AppleScript Finder Guide User Manual

Page 81

background image

C H A P T E R 2

Finder Objects

Object Class Definitions

69

COMMANDS HANDLED

Clean Up, Close, Count, Data Size, Exists, Get, Make, Open, Select, Sort, Update

DEFAULT VALUE CLASS RETURNED

A reference to a group or, if you use the plural form groups, a list of references.

EXAMPLE

This script displays a dialog box requesting the name of the new group to

create, then opens the control panel Users & Groups, creates the new group,

and sets its name:

tell application "Finder"

set response to display dialog ¬

"Name of new group:" default answer ""

set newGroup to text returned of response
set cPanels to control panel "Users & Groups" of ¬

control panels folder

open cPanels
make group at cPanels with properties {name: newGroup}

end tell

Information Window

2

An object of class Information Window is the window that opens when you

select an item and choose Get Info from the File menu.

PROPERTIES

An information window has all the properties defined for object class Window

on page 95: Bounds, Closeable, Floating, Index, Modal, Position, Resizable,

Titled, Visible, Zoomable, and Zoomed.