beautypg.com

Apple AppleScript Finder Guide User Manual

Page 95

background image

C H A P T E R 2

Finder Objects

Object Class Definitions

83

EXAMPLE

This script changes the Shared property to false for all sharable containers

that belong to a specified owner:

tell application "Finder"

set shared of sharable containers whose owner is "Greg" to false

end tell

NOTES

The properties Group Privileges, Guest Privileges, and Owner Privileges each

return an object of class Sharing Privileges. You can test for a specific privilege

by checking the values of the Sharing Privileges properties as described in the

next section.

Sharing Privileges

2

An object of class Sharing Privileges corresponds to the group privileges,

guest privileges, or owner privileges selected in the sharing window for a

sharable container.

PROPERTIES

make changes

A Boolean value that corresponds to the Make Changes

checkbox for a specified user or group is selected in a

sharable container’s sharing window.

Class:

Boolean

Modifiable:

Yes

see files

A Boolean value that corresponds to the See Files checkbox for

a specified user or group is selected in a sharable container’s

sharing window.

Class:

Boolean

Modifiable:

Yes