• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
XCMD OSAX syntax for "Set Privileges of"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCMD OSAX syntax for "Set Privileges of"


  • Subject: XCMD OSAX syntax for "Set Privileges of"
  • From: "William M. Smith" <email@hidden>
  • Date: Thu, 20 Jun 2002 20:37:05 -0500

I am trying to use the XCMD OSAX to allow me to change the read/write
permissions on a folder's group in the Sharing dialog. (I've found that using
native Applescript requires that File Sharing be turned on before being able
to set privileges, even if trying to do so on a mounted volume.)

In particular I want to use the "Set Privileges of" entry in the dictionary,
but I can't determine what the correct syntax should be. I can read
dictionaries fairly well and understand what to do, but this one has me
stumped.

The syntax with comments listed in the dictionary reads (copied and pasted
here):

===================================
Hypetalk syntax:
SetPrivileges <folder path>,<owner access>[,<group access> [,<everyone
access>]] WITH <access> = <name|*>,<see folders>,<see files>

Set Privileges of alias -- the full pathname of folder to share. As usual, a
path of a folder alias can also be passed.

ower access string -- Owner access define access rights for owner. Leaving
any of these items empty allows to keep current privileges. You
cannot change owner name of a folder of which you are not the current owner.
Leaving this item empty allows to keep current name.

[group access string] -- Group access define access rights for group.

[everyone access string] -- Group access define access rights for
everyone
===================================

For a folder named "ServerDrive:JobFiles:TheFolder", I want to change the
Group privileges from Read Only to Read & Write. Can someone help me finish
this?

tell application "Finder"
set privileges of folder "Harddrive:JobFiles:TheFolder" ???
end tell

If anyone can suggest a better method for accomplishing this take, I'd welcome
his suggestions.

Your help is greatly appreciated!

William M. Smith
Minneapolis, MN
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Does anyone know how to AppleScript Auto Color in PS7?
  • Next by Date: Wait until Document is open before proceeding
  • Previous by thread: Acrobat: Get characters?
  • Next by thread: Wait until Document is open before proceeding
  • Index(es):
    • Date
    • Thread