Re: Applying permissions to all files in all subfolders
Re: Applying permissions to all files in all subfolders
- Subject: Re: Applying permissions to all files in all subfolders
- From: Tom Giles <email@hidden>
- Date: Wed, 15 Aug 2007 14:53:09 +0100
- Organization: BD Solutions
that's a good point about it applying the perms to the whole folder
actually.
with your script, if for instance i dragged an item into a subfolder
would that apply the perms to that item? that's what i need to happen...
thanks for your help!
tom
Mark J. Reed wrote:
On 8/15/07, Tom Giles <email@hidden> wrote:
Thanks - we do have the folder setup that way, but it's not working
properly which is why we are resorting to a script. As long as i can use
"entire contents of someFolder" in the command that triggers the script
then it shouldn't be too slow. My script only reapplies perms to files
created/added to the folder.
The script as written applies perms to all files in the target folder,
whether new or not; it just only does it when new files are created.
I'm not on a Mac to test, but something like this might work - or it
might be slower than just doing everything in the folder every time:
on adding folder items to thisFolder after receiving theseItems
tell application "Finder"
repeat with thisItem in theseItems
if class of thisItem is folder then
set owner privileges of entire contents of
thisItem to read write
set group privileges of entire contents of
thisItem to read write
set everyones privileges of entire contents of
thisItem to read
else
set owner privileges of thisItem to read write
set group privileges of thisItem to read write
set everyones privileges of thisItem to read
end if
end repeat
end tell
end adding folder items to
--
Please note: the clock on my laptop is not functioning correctly and so the time this email looks like it was sent will no longer be correct.
___________
BD Solutions
3rd Floor
95A Rivington Street
London
EC2A 3AY
0207 739 3001
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden