Re: Script to set a folder's contents to Read/Write
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