• 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: Applying permissions to all files in all subfolders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Applying permissions to all files in all subfolders
      • From: "John C. Welch" <email@hidden>
    • Re: Applying permissions to all files in all subfolders
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Applying permissions to all files in all subfolders (From: Tom Giles <email@hidden>)
 >Re: Applying permissions to all files in all subfolders (From: "Mark J. Reed" <email@hidden>)
 >Re: Applying permissions to all files in all subfolders (From: Tom Giles <email@hidden>)
 >Re: Applying permissions to all files in all subfolders (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Applying permissions to all files in all subfolders
  • Next by Date: Re: Applying permissions to all files in all subfolders
  • Previous by thread: Re: Applying permissions to all files in all subfolders
  • Next by thread: Re: Applying permissions to all files in all subfolders
  • Index(es):
    • Date
    • Thread