• 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
Re: Script to set a folder's contents to Read/Write - PROBS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to set a folder's contents to Read/Write - PROBS


  • Subject: Re: Script to set a folder's contents to Read/Write - PROBS
  • From: Brett Conlon <email@hidden>
  • Date: Tue, 7 Mar 2006 16:20:09 +1000


Hmmm, so after a few further tests it isn't working as good as I was hoping...  <8-{

I have a folder which I manually set to:
Owner (design):RW
Group (design):No Access
Others: No Access

The script, when run on that folder, doesn't change group or others to R/W. They stay No Access.

I then tried incorporating Stan's AppleScript "way" of doing it and the folder privileges still didn't change. I then tried the following command in Terminal:

sudo chmod -R ugo+rw ...path name
... entered my password and the folder still remained as above - all the files within it are changing but not the dropped folder nor any folders in it.

How do I get this to explicityly apply R/W to all files/folders throughout?

Cheers,

Coj



Stan Cleveland <email@hidden>
Sent by: applescript-users-bounces+brett.conlon=email@hidden

07/03/06 12:30 PM

To
"email@hidden" <email@hidden>
cc
Subject
Re: Script to set a folder's contents to Read/Write





Oops. I just realized the -R option of the chmod command changes privileges
of the entire file hierarachy in the target path. To that end, the vanilla
code changes to this:

tell application "Finder"
  set owner privileges of entire contents of thisFolder to read write
  set group privileges of entire contents of thisFolder to read write
  set everyones privileges of entire contents of thisFolder to read write
end tell

Stan


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Script to set a folder's contents to Read/Write - PROBS
      • From: Brett Conlon <email@hidden>
References: 
 >Re: Script to set a folder's contents to Read/Write (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: Script to automate Safari....
  • Next by Date: Re: [AS] Image Events and GIF
  • Previous by thread: Re: Script to set a folder's contents to Read/Write
  • Next by thread: Re: Script to set a folder's contents to Read/Write - PROBS
  • Index(es):
    • Date
    • Thread