• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Script to set a folder's contents to Read/Write
  • From: Stan Cleveland <email@hidden>
  • Date: Mon, 06 Mar 2006 17:30:53 -0800
  • Thread-topic: Script to set a folder's contents to Read/Write

> On 3/6/06 3:53 PM, email@hidden wrote:
>
>>  set filePath to quoted form of POSIX path of thisFolder
>>  do shell script "chmod -R ugo+rw " & filePath
>
>
> Here's "vanilla AppleScript" Finder syntax to change privileges:
>
> tell application "Finder"
>         set owner privileges of thisFolder to read write
>         set group privileges of thisFolder to read write
>         set everyones privileges of thisFolder to read write
> end tell

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 set a folder's contents to Read/Write
  • Next by Date: Re: Script to automate Safari....
  • 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